Skip to content

Commit

Permalink
Wait for correct message in t_iprop.py
Browse files Browse the repository at this point in the history
The message "Got incremental updates from the master" precedes
actually replaying the updates on the slave.  Instead look for
"Incremental updates:" (the statistics message), which happens just
after the updates are replayed.

Also, we don't need to import time now that we're not sleeping.
  • Loading branch information
greghudson committed Oct 15, 2012
1 parent 1ea3986 commit 4c9da1b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tests/t_iprop.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/python

import os
import time

from k5test import *

Expand All @@ -17,7 +16,7 @@ def wait_for_prop(realm, full_expected):
fail('kpropd process exited unexpectedly')
output('kpropd: ' + line)

if 'KDC is synchronized' in line or 'Got incremental updates' in line:
if 'KDC is synchronized' in line or 'Incremental updates:' in line:
output('*** Sync complete\n')
if full_expected and not full_seen:
fail('Expected full dump but saw only incremental')
Expand Down

0 comments on commit 4c9da1b

Please sign in to comment.