Skip to content

Commit 23f6d63

Browse files
committed
tests: fix arrow.TestInsert_invalid
It looks like the implementation of Tarantool changed and we need to update the test.
1 parent 3e29049 commit 23f6d63

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

arrow/tarantool_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ var opts = tarantool.Opts{
3535
func TestInsert_invalid(t *testing.T) {
3636
arrows := []struct {
3737
arrow string
38-
expected iproto.Error
38+
expected []iproto.Error
3939
}{
4040
{
4141
"",
42-
iproto.ER_INVALID_MSGPACK,
42+
[]iproto.Error{iproto.ER_INVALID_MSGPACK},
4343
},
4444
{
4545
"00",
46-
iproto.ER_INVALID_MSGPACK,
46+
[]iproto.Error{iproto.ER_INVALID_MSGPACK},
4747
},
4848
{
4949
"ffffffff70000000040000009effffff0400010004000000" +
@@ -55,7 +55,7 @@ func TestInsert_invalid(t *testing.T) {
5555
"00000000000000000000000000000800000000000000000000000100000001000000" +
5656
"0000000000000000000000000a00140004000c0010000c0014000400060008000c00" +
5757
"00000000000000000000",
58-
iproto.ER_UNSUPPORTED,
58+
[]iproto.Error{iproto.ER_UNSUPPORTED, iproto.ER_INVALID_MSGPACK},
5959
},
6060
}
6161

@@ -74,7 +74,7 @@ func TestInsert_invalid(t *testing.T) {
7474
_, err = conn.Do(req).Get()
7575
ttErr := err.(tarantool.Error)
7676

77-
require.Equal(t, a.expected, ttErr.Code)
77+
require.Contains(t, a.expected, ttErr.Code)
7878
})
7979
}
8080

0 commit comments

Comments
 (0)