Skip to content

Commit

Permalink
Change the timeout value in test_all_apis.py as it is seconds instead…
Browse files Browse the repository at this point in the history
… of miliseconds
  • Loading branch information
anhmiuhv authored Jan 5, 2024
1 parent 4d82d22 commit aab2ffd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions samples/test_all_apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ def test_wait_for_edge_timeout():
GPIO.setmode(GPIO.BOARD)
GPIO.setup(pin_data['out_a'], GPIO.OUT, initial=GPIO.LOW)
GPIO.setup(pin_data['in_a'], GPIO.IN)
val = GPIO.wait_for_edge(pin_data['in_a'], GPIO.BOTH, timeout=100)
val = GPIO.wait_for_edge(pin_data['in_a'], GPIO.BOTH, timeout=5)
assert val is None
GPIO.cleanup()

Expand All @@ -530,7 +530,7 @@ def test_wait_for_edge_rising():
GPIO.setup(pin_data['in_a'], GPIO.IN)
dsc = DelayedSetChannel(pin_data['out_a'], GPIO.HIGH, 0.5)
dsc.start()
val = GPIO.wait_for_edge(pin_data['in_a'], GPIO.RISING, timeout=1000)
val = GPIO.wait_for_edge(pin_data['in_a'], GPIO.RISING, timeout=10)
dsc.join()
assert val == pin_data['in_a']
GPIO.cleanup()
Expand All @@ -543,7 +543,7 @@ def test_wait_for_edge_falling():
GPIO.setup(pin_data['in_a'], GPIO.IN)
dsc = DelayedSetChannel(pin_data['out_a'], GPIO.LOW, 0.5)
dsc.start()
val = GPIO.wait_for_edge(pin_data['in_a'], GPIO.FALLING, timeout=1000)
val = GPIO.wait_for_edge(pin_data['in_a'], GPIO.FALLING, timeout=10)
dsc.join()
assert val == pin_data['in_a']
GPIO.cleanup()
Expand Down

0 comments on commit aab2ffd

Please sign in to comment.