Skip to content

Commit 4d7282b

Browse files
committed
TST: seed the noisy_barometer fixture to fix a pre-existing flake
test_noisy_barometer asserts a barometer reading within rel=0.03 of the clean pressure, but the reading carries an unseeded Gaussian noise draw plus a +1000 Pa constant_bias the expected value omits, leaving only ~+2.42 sigma of headroom, so it already flaked at ~0.76% on develop (a 20k-trial check: develop 0.77%, this branch 0.75%). Passing a fixed seed makes it deterministic and also exercises the new sensor seed argument.
1 parent 15daf41 commit 4d7282b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/fixtures/sensors/sensors_fixtures.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def noisy_barometer():
6262
operating_temperature=25 + 273.15,
6363
temperature_bias=0.02,
6464
temperature_scale_factor=0.02,
65+
seed=42,
6566
)
6667

6768

0 commit comments

Comments
 (0)