Skip to content

Commit 82511cc

Browse files
committed
reduce ADC reads in pytest from 10,000 to 1,000
Reduce number of reads of ADC so that pytest will run faster. Long run time is especially annoying when using strace.
1 parent 98cc3e5 commit 82511cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_adc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def test_many_read_adc(self):
5454

5555
ADC.setup()
5656

57-
for x in range(0,10000):
57+
for x in range(0,1000):
5858
start = time.time()
5959
value = -1
6060
value = ADC.read("AIN1")

0 commit comments

Comments
 (0)