X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/27ed5a6987fc300f25569628e9152fafcf34c49f..dd9af5cb6877b3c6c6b33d99800ec35745272729:/tests/dtest.py diff --git a/tests/dtest.py b/tests/dtest.py index 9439bce..5eac2ea 100644 --- a/tests/dtest.py +++ b/tests/dtest.py @@ -271,16 +271,10 @@ def create_user(username="fred", password="fredpass"): "--user", "root", "edituser", username, "rights", "all"]) def rescan(c=None): - class rescan_monitor(disorder.monitor): - def rescanned(self): - return False + print " initiating rescan" if c is None: c = disorder.client() - m = rescan_monitor() - print " initiating rescan" - c.rescan() - print " waiting for rescan to complete" - m.run() + c.rescan('wait') print " rescan completed" def stop_daemon():