Skip to content

Commit

Permalink
adapt target num samples to new pause API
Browse files Browse the repository at this point in the history
  • Loading branch information
jopohl committed Jun 25, 2018
1 parent 71e8d98 commit 15d6cb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def test_performance(self):
simulator = Simulator(self.stc.simulator_config, self.gtc.modulators, self.stc.sim_expression_parser,
self.form.project_manager, sniffer=sniffer, sender=sender)

pause = 100000
pause = 100
msg_a = SimulatorMessage(part_b,
[1, 0] * 16 + [1, 1, 0, 0] * 8 + [0, 0, 1, 1] * 8 + [1, 0, 1, 1, 1, 0, 0, 1, 1, 1] * 4,
pause=pause, message_type=MessageType("empty_message_type"), source=part_a)
Expand All @@ -122,7 +122,7 @@ def test_performance(self):

current_index = Value("L")
elapsed = Value("f")
target_num_samples = 113600 - pause
target_num_samples = 13600 + pause
receive_process = Process(target=receive, args=(port, current_index, target_num_samples, elapsed))
receive_process.daemon = True
receive_process.start()
Expand Down

0 comments on commit 15d6cb5

Please sign in to comment.