From 6286868264d3ad30b6f06f5aabb85479b2a0bf62 Mon Sep 17 00:00:00 2001 From: Anthony Yeh Date: Wed, 21 Oct 2015 16:47:01 -0700 Subject: [PATCH] Fix schema.py test for new InitShardMaster behavior. It creates the db now. --- test/schema.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/schema.py b/test/schema.py index 93089988e92..7a41c525f5e 100755 --- a/test/schema.py +++ b/test/schema.py @@ -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):