Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Song Gao <[email protected]>
  • Loading branch information
Yisaer committed Jan 20, 2025
1 parent 4f9499a commit 0e4a87d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/topo/node/source_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ func NewSourceNode(name string, st ast.StreamType, op UnOperation, options *ast.
}

func extractBufferLength(props map[string]any, originValue int) int {
if props == nil {
return originValue
}

Check warning on line 70 in internal/topo/node/source_node.go

View check run for this annotation

Codecov / codecov/patch

internal/topo/node/source_node.go#L69-L70

Added lines #L69 - L70 were not covered by tests
if c, ok := props["bufferLength"]; ok {
t, err := cast.ToInt(c, cast.STRICT)
if err == nil {
Expand Down

0 comments on commit 0e4a87d

Please sign in to comment.