Allow client replays to be replayed against server replays.
Useful for testing.
This commit is contained in:
parent
bad77f3470
commit
4f02480482
|
@ -54,10 +54,12 @@ class ClientPlaybackState:
|
||||||
if self.flows and not self.current:
|
if self.flows and not self.current:
|
||||||
n = self.flows.pop(0)
|
n = self.flows.pop(0)
|
||||||
self.current = master.handle_request(n.request)
|
self.current = master.handle_request(n.request)
|
||||||
if not testing:
|
if not testing and not self.current.response:
|
||||||
#begin nocover
|
#begin nocover
|
||||||
master.state.replay_request(self.current, master.masterq)
|
master.state.replay_request(self.current, master.masterq)
|
||||||
#end nocover
|
#end nocover
|
||||||
|
elif self.current.response:
|
||||||
|
master.handle_response(self.current.response)
|
||||||
|
|
||||||
|
|
||||||
class ServerPlaybackState:
|
class ServerPlaybackState:
|
||||||
|
|
Loading…
Reference in New Issue