From f6b2135cc9b638f97a53be984f48e0a852929568 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 27 May 2021 19:37:51 +0200 Subject: [PATCH] test/test_timer: Update. --- test/test_timer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_timer.py b/test/test_timer.py index 2050267f0..455490a2c 100644 --- a/test/test_timer.py +++ b/test/test_timer.py @@ -50,14 +50,14 @@ class TestTimer(unittest.TestCase): yield from timer._reload.write(0) yield from timer.ev.enable.write(1) - self.assertEqual(1, (yield timer.ev.zero.trigger)) + self.assertEqual(0, (yield timer.ev.zero.trigger)) yield from timer._en.write(1) - while (yield timer.ev.zero.trigger != 0) and clock_cycles >= -5: + while (yield timer.ev.zero.trigger != 1) and clock_cycles >= -5: yield clock_cycles -= 1 - self.assertEqual(0, (yield timer.ev.zero.trigger)) + self.assertEqual(1, (yield timer.ev.zero.trigger)) timer = Timer() run_simulation(timer, generator(timer))