@@ -35,19 +35,15 @@ var opts = tarantool.Opts{
3535func TestInsert_invalid (t * testing.T ) {
3636 arrows := []struct {
3737 arrow string
38- expected [] iproto.Error
38+ expected iproto.Error
3939 }{
4040 {
4141 "" ,
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 ,
4543 },
4644 {
4745 "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 ,
5147 },
5248 {
5349 "ffffffff70000000040000009effffff0400010004000000" +
@@ -59,7 +55,7 @@ func TestInsert_invalid(t *testing.T) {
5955 "00000000000000000000000000000800000000000000000000000100000001000000" +
6056 "0000000000000000000000000a00140004000c0010000c0014000400060008000c00" +
6157 "00000000000000000000" ,
62- [] iproto.Error { iproto . ER_UNSUPPORTED } ,
58+ iproto .ER_UNSUPPORTED ,
6359 },
6460 }
6561
@@ -78,13 +74,7 @@ func TestInsert_invalid(t *testing.T) {
7874 _ , err = conn .Do (req ).Get ()
7975 ttErr := err .(tarantool.Error )
8076
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 )
8878 })
8979 }
9080
0 commit comments