fix tests

This commit is contained in:
Maximilian Hils 2014-11-11 13:09:05 +01:00
parent 2335d00c1c
commit a325ae638b
2 changed files with 3 additions and 2 deletions

View File

@ -191,7 +191,7 @@ class ClientPlaybackState:
testing: Disables actual replay for testing.
"""
if self.flows and not self.current:
n = self.flows.pop(0)
n = self.flows.pop(0).copy()
n.response = None
n.reply = controller.DummyReply()
self.current = master.handle_request(n)

View File

@ -692,7 +692,8 @@ class TestFlowMaster:
f = tutils.tflow(resp=True)
pb = [tutils.tflow(resp=True), f]
fm = flow.FlowMaster(None, s)
fm = flow.FlowMaster(DummyServer(ProxyConfig()), s)
assert not fm.start_server_playback(pb, False, [], False, False, None, False)
assert not fm.start_client_playback(pb, False)