Skip to content

Commit

Permalink
fix propeller's test
Browse files Browse the repository at this point in the history
Signed-off-by: Future-Outlier <[email protected]>
  • Loading branch information
Future-Outlier committed Sep 19, 2024
1 parent 1d5cd82 commit 0266604
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions flytepropeller/pkg/compiler/validators/bindings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -777,8 +777,8 @@ func TestValidateBindings(t *testing.T) {
assert.False(t, ok)
assert.Equal(t, "MismatchingTypes", string(compileErrors.Errors().List()[0].Code()))
assert.Equal(t, "Code: MismatchingTypes, Node Id: node1, Description: Variable [x]"+
" (type [union_type:{variants:{simple:INTEGER structure:{tag:\"int\"}}}]) doesn't match expected type"+
" [union_type:{variants:{simple:INTEGER structure:{tag:\"int_other\"}}}].", compileErrors.Errors().List()[0].Error())
" (type [union_type:{variants:{simple:INTEGER structure:{tag:\"int\"}}}]) doesn't match expected type"+
" [union_type:{variants:{simple:INTEGER structure:{tag:\"int_other\"}}}].", compileErrors.Errors().List()[0].Error())
})

t.Run("List of Int to List of Unions Binding", func(t *testing.T) {
Expand Down Expand Up @@ -1212,8 +1212,8 @@ func TestValidateBindings(t *testing.T) {
assert.Equal(t, "MismatchingTypes", string(compileErrors.Errors().List()[0].Code()))
assert.Equal(t, "Code: MismatchingTypes, Node Id: node1, Description: The output variable 'n2.n2_out'"+
" has type [simple:INTEGER], but it's assigned to the input variable 'n.x' which has type"+
" type [union_type:{variants:{simple:STRING structure:{tag:\"str\"}} variants:{simple:INTEGER structure:{tag:\"int1\"}}"+
" variants:{simple:INTEGER structure:{tag:\"int2\"}}}].", compileErrors.Errors().List()[0].Error())
" type [union_type:{variants:{simple:STRING structure:{tag:\"str\"}} variants:{simple:INTEGER structure:{tag:\"int1\"}}"+
" variants:{simple:INTEGER structure:{tag:\"int2\"}}}].", compileErrors.Errors().List()[0].Error())
})

t.Run("Union Promise Union Literal", func(t *testing.T) {
Expand Down

0 comments on commit 0266604

Please sign in to comment.