Skip to content

Commit

Permalink
test: do not set nil schemas
Browse files Browse the repository at this point in the history
Signed-off-by: Vicent Marti <vmg@strn.cat>
  • Loading branch information
vmg committed Feb 24, 2021
1 parent 50e5f66 commit a348a58
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions go/vt/vtadmin/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1587,8 +1587,10 @@ func TestVTExplain(t *testing.T) {
})

testutil.WithTestServer(t, vtctldserver, func(t *testing.T, vtctldClient vtctldclient.VtctldClient) {

toposerver.UpdateSrvVSchema(context.Background(), "c0_cell1", tt.srvVSchema)
if tt.srvVSchema != nil {
err := toposerver.UpdateSrvVSchema(context.Background(), "c0_cell1", tt.srvVSchema)
require.NoError(t, err)
}
testutil.AddKeyspaces(context.Background(), t, toposerver, tt.keyspaces...)
testutil.AddShards(context.Background(), t, toposerver, tt.shards...)

Expand Down

0 comments on commit a348a58

Please sign in to comment.