@@ -35,19 +35,15 @@ var opts = tarantool.Opts{
35
35
func TestInsert_invalid (t * testing.T ) {
36
36
arrows := []struct {
37
37
arrow string
38
- expected [] iproto.Error
38
+ expected iproto.Error
39
39
}{
40
40
{
41
41
"" ,
42
- // TODO: delete iproto.ER_ARROW_IPC_DECODE, see:
43
- // https://github.com/tarantool/go-tarantool/issues/415
44
- []iproto.Error {iproto .ER_INVALID_MSGPACK , iproto .ER_ARROW_IPC_DECODE },
42
+ iproto .ER_INVALID_MSGPACK ,
45
43
},
46
44
{
47
45
"00" ,
48
- // TODO: delete iproto.ER_ARROW_IPC_DECODE, see:
49
- // https://github.com/tarantool/go-tarantool/issues/415
50
- []iproto.Error {iproto .ER_INVALID_MSGPACK , iproto .ER_ARROW_IPC_DECODE },
46
+ iproto .ER_INVALID_MSGPACK ,
51
47
},
52
48
{
53
49
"ffffffff70000000040000009effffff0400010004000000" +
@@ -59,7 +55,7 @@ func TestInsert_invalid(t *testing.T) {
59
55
"00000000000000000000000000000800000000000000000000000100000001000000" +
60
56
"0000000000000000000000000a00140004000c0010000c0014000400060008000c00" +
61
57
"00000000000000000000" ,
62
- [] iproto.Error { iproto . ER_UNSUPPORTED } ,
58
+ iproto .ER_UNSUPPORTED ,
63
59
},
64
60
}
65
61
@@ -78,13 +74,7 @@ func TestInsert_invalid(t *testing.T) {
78
74
_ , err = conn .Do (req ).Get ()
79
75
ttErr := err .(tarantool.Error )
80
76
81
- require .Contains (t , a .expected , ttErr .Code )
82
- // TODO: replace the check with:
83
- //
84
- // require.Equal(t, a.expected, ttErr.Code)
85
- //
86
- // See:
87
- // https://github.com/tarantool/go-tarantool/issues/415
77
+ require .Equal (t , a .expected , ttErr .Code )
88
78
})
89
79
}
90
80
0 commit comments