Skip to content

Commit

Permalink
tests: test_spawn: make stress local_only
Browse files Browse the repository at this point in the history
  • Loading branch information
doronz88 committed Feb 23, 2022
1 parent cd0043b commit feb43ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rpcclient/tests/test_spawn.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def test_spawn_foreground_sanity(client, argv, expected_stdout, errorcode):
assert expected_stdout == stdout.read().strip()


@pytest.mark.local_only
@pytest.mark.parametrize('argv,expected_stdout,errorcode', [
[['/bin/sleep', '0'], '', 0],
[['/bin/echo', 'blat'], 'blat', 0],
Expand All @@ -46,6 +47,8 @@ def test_spawn_background_sanity(client):
client.processes.kill(spawn_result.pid)


@pytest.mark.local_only
@pytest.mark.local_only
def test_spawn_background_stress(client):
for i in range(1000):
test_spawn_background_sanity(client)

0 comments on commit feb43ce

Please sign in to comment.