Skip to content

Commit abd7bef

Browse files
cdericiAflynn50
authored andcommitted
Remove duplicate test in integration/test_machine
... already exists in integration/test_unit
1 parent 5681bf5 commit abd7bef

1 file changed

Lines changed: 0 additions & 30 deletions

File tree

tests/integration/test_machine.py

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# Licensed under the Apache V2, see LICENCE file for details.
33

44
import asyncio
5-
from tempfile import NamedTemporaryFile
65

76
import pytest
87

@@ -37,32 +36,3 @@ async def test_status(event_loop):
3736
machine.status_message.lower() == 'running' and
3837
machine.agent_status == 'started')),
3938
timeout=480)
40-
41-
42-
@base.bootstrapped
43-
@pytest.mark.asyncio
44-
async def test_scp(event_loop):
45-
# ensure that asyncio.subprocess will work;
46-
try:
47-
asyncio.get_child_watcher().attach_loop(event_loop)
48-
except RuntimeError:
49-
pytest.skip('test_scp will always fail outside of MainThread')
50-
async with base.CleanModel() as model:
51-
await model.add_machine()
52-
await asyncio.wait_for(
53-
model.block_until(lambda: model.machines),
54-
timeout=240)
55-
machine = model.machines['0']
56-
await asyncio.wait_for(
57-
model.block_until(lambda: (machine.status == 'running' and
58-
machine.agent_status == 'started')),
59-
timeout=480)
60-
61-
with NamedTemporaryFile() as f:
62-
f.write(b'testcontents')
63-
f.flush()
64-
await machine.scp_to(f.name, 'testfile', scp_opts='-p')
65-
66-
with NamedTemporaryFile() as f:
67-
await machine.scp_from('testfile', f.name, scp_opts='-p')
68-
assert f.read() == b'testcontents'

0 commit comments

Comments
 (0)