Skip to content

Commit

Permalink
Fix schema.py test for new InitShardMaster behavior.
Browse files Browse the repository at this point in the history
It creates the db now.
  • Loading branch information
enisoc committed Oct 21, 2015
1 parent c976134 commit 6286868
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,9 @@ def _test_vtctl_copyschemashard(self, source):

self._setUp_tablets_shard_2()

# CopySchemaShard is responsible for creating the db; one
# shouldn't exist before the command is run.
self._check_db_not_created(shard_2_master)
self._check_db_not_created(shard_2_replica1)
# InitShardMaster creates the db, but there shouldn't be any tables yet.
self._check_tables(shard_2_master, 0)
self._check_tables(shard_2_replica1, 0)

# Run the command twice to make sure it's idempotent.
for _ in range(2):
Expand Down

0 comments on commit 6286868

Please sign in to comment.