File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -35,15 +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- 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
You can’t perform that action at this time.
0 commit comments