swift team mailing list archive
-
swift team
-
Mailing list archive
-
Message #00002
Re: testObjectUpdater.test_update_once_single_threaded
On Wed, 25 Aug 2010 10:03:01 -0500
Gregory Holt <greg6348@xxxxxxxxx> wrote:
> Yes, there's a problem with the test trying to .accept in two
> green threads on the same bindsock. Sorry about that.
> Try this and see if it helps:
> +++ test/unit/obj/test_updater.py 2010-08-25 15:01:19 +0000
> bindsock = listen(('127.0.0.1', 0))
> - def accept(return_code):
> + def accepter(sock, return_code):
> try:
> return None
> - events = [spawn(accept, 201), spawn(accept, 201)]
> + def accept(return_code):
> + sock, addr = bindsock.accept()
> + events.append(spawn(accepter, sock, return_code))
Thank you, this works on the affected system. I am checking on
other boxes to be sure.
Greetings,
-- Pete
References