X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/f0feb22e80bfe438c16d212a7cc8be6d2282b6ac..61682944f5d1fb2911de971b76a99cd57ec3c50a:/tests/queue.py diff --git a/tests/queue.py b/tests/queue.py index c78d6ed..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 @@ -24,6 +24,11 @@ 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()