- add changelog entry for restart-crashed-nodes
- fix a test which depended on dict ordering - minor test cleanups
This commit is contained in:
@@ -352,7 +352,7 @@ def test_teardownfails_one_function(testdir):
|
||||
@py.test.mark.xfail
|
||||
def test_terminate_on_hangingnode(testdir):
|
||||
p = testdir.makeconftest("""
|
||||
def pytest_sessionfinishes(session):
|
||||
def pytest_sessionfinish(session):
|
||||
if session.nodeid == "my": # running on slave
|
||||
import time
|
||||
time.sleep(3)
|
||||
@@ -364,9 +364,7 @@ def test_terminate_on_hangingnode(testdir):
|
||||
])
|
||||
|
||||
|
||||
# This test works when I reproduce it manually but hangs when running
|
||||
# in the test suite. --flub
|
||||
@pytest.mark.skipif(True, reason="Weird hang")
|
||||
@pytest.mark.xfail(reason="works if run outside test suite", run=False)
|
||||
def test_session_hooks(testdir):
|
||||
testdir.makeconftest("""
|
||||
import sys
|
||||
|
||||
@@ -109,10 +109,9 @@ class TestLoadScheduling:
|
||||
|
||||
def test_init_distribute_chunksize(self):
|
||||
sched = LoadScheduling(2)
|
||||
node1 = MockNode()
|
||||
node2 = MockNode()
|
||||
sched.addnode(node1)
|
||||
sched.addnode(node2)
|
||||
sched.addnode(MockNode())
|
||||
sched.addnode(MockNode())
|
||||
node1, node2 = sched.nodes
|
||||
col = ["xyz"] * (6)
|
||||
sched.addnode_collection(node1, col)
|
||||
sched.addnode_collection(node2, col)
|
||||
|
||||
Reference in New Issue
Block a user