X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/71b70599a2cd81c13cc4326499a5d0c45358cd7d..199c2a23548cf3c89ddbb8a444ccdf2940f89c74:/tests/queue.py diff --git a/tests/queue.py b/tests/queue.py index cc0b619..7ed10a0 100755 --- a/tests/queue.py +++ b/tests/queue.py @@ -1,7 +1,7 @@ #! /usr/bin/env python # # This file is part of DisOrder. -# Copyright (C) 2007 Richard Kettlewell +# Copyright (C) 2007, 2008 Richard Kettlewell # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -23,6 +23,12 @@ import dtest,time,disorder,re def test(): """Check the queue is padded to the (default) configured length""" dtest.start_daemon() + dtest.create_user() + print " waiting for queue to be populated..." + class wait_monitor(disorder.monitor): + def queue(self, q): + return False + wait_monitor().run() c = disorder.client() print " getting queue via python module" q = c.queue()