Skip to content

Commit

Permalink
fix executor test for no keyspace in ddl execution
Browse files Browse the repository at this point in the history
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
  • Loading branch information
harshit-gangal committed Apr 9, 2020
1 parent bf5f093 commit 29d4976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/vtgate/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1217,7 +1217,7 @@ func TestExecutorDDL(t *testing.T) {

_, err := executor.Execute(context.Background(), "TestExecute", NewSafeSession(&vtgatepb.Session{TargetString: tc.targetStr}), stmt, nil)
if tc.hasNoKeyspaceErr {
require.EqualError(t, err, errNoKeyspace.Error(), "expect query to fail")
require.EqualError(t, err, "keyspace not specified", "expect query to fail")
} else {
require.NoError(t, err)
}
Expand Down

0 comments on commit 29d4976

Please sign in to comment.