Skip to content

Commit

Permalink
Fixing integration tests with new states.
Browse files Browse the repository at this point in the history
  • Loading branch information
alainjobart committed Apr 28, 2014
1 parent 049568a commit e4c9b17
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion test/initial_sharding.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def test_resharding(self):
t.start_vttablet(wait_for_state=None)
for t in [shard_0_master, shard_0_replica, shard_0_rdonly,
shard_1_master, shard_1_replica, shard_1_rdonly]:
t.wait_for_vttablet_state('CONNECTING')
t.wait_for_vttablet_state('NOT_SERVING')

utils.run_vtctl(['ReparentShard', '-force', 'test_keyspace/-80',
shard_0_master.tablet_alias], auto_log=True)
Expand Down
9 changes: 3 additions & 6 deletions test/resharding.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,12 +413,9 @@ def test_resharding(self):
for t in [shard_2_master, shard_2_replica1, shard_2_replica2,
shard_3_master, shard_3_replica, shard_3_rdonly]:
t.start_vttablet(wait_for_state=None)
shard_2_master.wait_for_vttablet_state('CONNECTING')
shard_2_replica1.wait_for_vttablet_state('NOT_SERVING')
shard_2_replica2.wait_for_vttablet_state('NOT_SERVING')
shard_3_master.wait_for_vttablet_state('CONNECTING')
shard_3_replica.wait_for_vttablet_state('NOT_SERVING')
shard_3_rdonly.wait_for_vttablet_state('CONNECTING')
for t in [shard_2_master, shard_2_replica1, shard_2_replica2,
shard_3_master, shard_3_replica, shard_3_rdonly]:
t.wait_for_vttablet_state('NOT_SERVING')

utils.run_vtctl(['ReparentShard', '-force', 'test_keyspace/80-C0',
shard_2_master.tablet_alias], auto_log=True)
Expand Down
2 changes: 1 addition & 1 deletion test/vertical_split.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def test_vertical_split(self):
for t in [source_master, source_replica, source_rdonly]:
t.wait_for_vttablet_state('SERVING')
for t in [destination_master, destination_replica, destination_rdonly]:
t.wait_for_vttablet_state('CONNECTING')
t.wait_for_vttablet_state('NOT_SERVING')

# reparent to make the tablets work
utils.run_vtctl(['ReparentShard', '-force', 'source_keyspace/0',
Expand Down

0 comments on commit e4c9b17

Please sign in to comment.