mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
tests: properly skip pathod tests
This commit is contained in:
parent
f4c3c01266
commit
a7b9e3033d
@ -211,7 +211,7 @@ class TestDaemon(_TestDaemon):
|
|||||||
c.stop()
|
c.stop()
|
||||||
|
|
||||||
@skip_windows
|
@skip_windows
|
||||||
@pytest.mark.xfail
|
@pytest.mark.skip(reason="race condition")
|
||||||
def test_wait_finish(self):
|
def test_wait_finish(self):
|
||||||
c = pathoc.Pathoc(
|
c = pathoc.Pathoc(
|
||||||
("127.0.0.1", self.d.port),
|
("127.0.0.1", self.d.port),
|
||||||
|
@ -129,7 +129,7 @@ class CommonTests(tutils.DaemonTests):
|
|||||||
l = self.d.last_log()
|
l = self.d.last_log()
|
||||||
# FIXME: Other binary data elements
|
# FIXME: Other binary data elements
|
||||||
|
|
||||||
@pytest.mark.skip
|
@pytest.mark.skip(reason="race condition")
|
||||||
def test_sizelimit(self):
|
def test_sizelimit(self):
|
||||||
r = self.get("200:b@1g")
|
r = self.get("200:b@1g")
|
||||||
assert r.status_code == 800
|
assert r.status_code == 800
|
||||||
@ -143,7 +143,7 @@ class CommonTests(tutils.DaemonTests):
|
|||||||
def test_info(self):
|
def test_info(self):
|
||||||
assert tuple(self.d.info()["version"]) == version.IVERSION
|
assert tuple(self.d.info()["version"]) == version.IVERSION
|
||||||
|
|
||||||
@pytest.mark.skip
|
@pytest.mark.skip(reason="race condition")
|
||||||
def test_logs(self):
|
def test_logs(self):
|
||||||
assert self.d.clear_log()
|
assert self.d.clear_log()
|
||||||
assert not self.d.last_log()
|
assert not self.d.last_log()
|
||||||
@ -223,7 +223,7 @@ class CommonTests(tutils.DaemonTests):
|
|||||||
)
|
)
|
||||||
assert r[1].payload == "test"
|
assert r[1].payload == "test"
|
||||||
|
|
||||||
@pytest.mark.skip
|
@pytest.mark.skip(reason="race condition")
|
||||||
def test_websocket_frame_reflect_error(self):
|
def test_websocket_frame_reflect_error(self):
|
||||||
r, _ = self.pathoc(
|
r, _ = self.pathoc(
|
||||||
["ws:/p/", "wf:-mask:knone:f'wf:b@10':i13,'a'"],
|
["ws:/p/", "wf:-mask:knone:f'wf:b@10':i13,'a'"],
|
||||||
|
Loading…
Reference in New Issue
Block a user