From fb1b9113a101e2b5bf174140f95f06131f23e91f Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Thu, 4 Jun 2015 19:55:01 +1200 Subject: Try to fix test suite race like a savage. --- test/test_pathod.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/test_pathod.py') diff --git a/test/test_pathod.py b/test/test_pathod.py index 613cb1f5..2adcae40 100644 --- a/test/test_pathod.py +++ b/test/test_pathod.py @@ -1,6 +1,8 @@ import cStringIO from libpathod import pathod, version from netlib import tcp, http +import time + import tutils @@ -200,7 +202,8 @@ class CommonTests(tutils.DaemonTests): def test_websocket_frame(self): r = self.pathoc(["ws:/p/", "wf:b@10"], ws_read_limit=0) - assert "wsframe" in [i["type"] for i in self.d.log()] + time.sleep(0.01) + assert self.d.last_log()["type"] == "wsframe" class TestDaemon(CommonTests): -- cgit v1.2.3