We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9e2b01 commit fcb3ba7Copy full SHA for fcb3ba7
tests/test_live_server.py
@@ -116,3 +116,14 @@ def two():
116
result = appdir.runpytest('-v', '--no-start-live-server')
117
result.stdout.fnmatch_lines(['*PASSED*'])
118
assert result.ret == 0
119
+
120
+ def test_respect_wait_timeout(self, appdir):
121
+ appdir.create_test_module('''
122
+ import pytest
123
124
+ def test_should_fail(live_server):
125
+ assert live_server._process.is_alive()
126
+ ''')
127
+ result = appdir.runpytest('-v', '--live-server-wait=0.00001')
128
+ result.stdout.fnmatch_lines(['**ERROR**'])
129
+ assert result.ret == 1
0 commit comments