summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2019-09-11 11:21:08 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2019-09-11 11:21:08 +0200
commit6c602c82a7c8285d1a41cfbf714cbd2ea09b182f (patch)
treee3ed3091dcd4f7cdc99651cee06383b2215cd0f0 /test
parent65724c3c3015a8d3b473bab83da5fb5d72d01dd1 (diff)
PTA: Use "None" transition for sleep
This way, PTA models can have sleep transitions without conflict
Diffstat (limited to 'test')
-rwxr-xr-xtest/test_pta.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_pta.py b/test/test_pta.py
index dba67d7..e8de399 100755
--- a/test/test_pta.py
+++ b/test/test_pta.py
@@ -328,9 +328,9 @@ class TestPTA(unittest.TestCase):
pta.add_transition('TX', 'IDLE', 'txComplete', timeout = 2000, is_interrupt = True)
trace = [
['init'],
- ['sleep', 10000000],
+ [None, 10000000],
['send', 'foo', 3],
- ['sleep', 5000000],
+ [None, 5000000],
['send', 'foo', 3]
]
expected_energy = 5. * 10000000 + 3 + 100 * 2000 + 5 * 5000000 + 3 + 100 * 2000