@@ -298,29 +298,34 @@ def test_tacd_dut_power_off_floating(strategy, shell, eet):
298
298
299
299
# Connect 5V via 1K Ohm to PWR_OUT
300
300
eet .link ("5V_1K -> 5V -> BUS1 -> VOLT, PWR_OUT -> BUS2 -> VOLT" )
301
- time .sleep (0.2 ) # Give measurements a moment to settle
301
+ time .sleep (0.5 ) # Give measurements a moment to settle
302
302
303
303
# measure DUT voltage
304
304
r = requests .get (f"http://{ strategy .network .address } /v1/dut/feedback/voltage" )
305
305
assert r .status_code == 200
306
306
off_voltage = r .json ()["value" ]
307
- assert 3 < off_voltage < 5.5 # USB supply voltage can be all over the place
307
+
308
+ # USB supply voltage can be all over the place
309
+ assert 3 < off_voltage < 5.5 , "Off-voltage is not inside USB-Supply range"
308
310
309
311
# Switch power switch to off without the load.
310
312
r = requests .put (f"http://{ strategy .network .address } /v1/dut/powered" , data = b'"OffFloating"' )
311
313
assert r .status_code == 204
312
- time .sleep (0.2 ) # Give measurements a moment to settle
314
+ time .sleep (0.5 ) # Give measurements a moment to settle
313
315
314
316
# measure DUT voltage
315
317
r = requests .get (f"http://{ strategy .network .address } /v1/dut/feedback/voltage" )
316
318
assert r .status_code == 200
317
319
floating_voltage = r .json ()["value" ]
318
- assert 3 < floating_voltage < 5.5 # USB supply voltage can be all over the place
319
320
320
- assert floating_voltage > off_voltage
321
+ # USB supply voltage can be all over the place
322
+ assert 3 < floating_voltage < 5.5 , "OffFloating-voltage is not inside USB-supply range"
323
+
324
+ # Make sure both measurements have the right relation
325
+ assert floating_voltage > off_voltage , "OffFloating-voltage is not higher than Off-voltage"
321
326
322
327
# Voltage relation is given by the voltage divider of 1k and 10k
323
- assert off_voltage / floating_voltage == pytest .approx (10e3 / (10e3 + 1e3 ), rel = 0.1 )
328
+ assert off_voltage / floating_voltage == pytest .approx (10e3 / (10e3 + 1e3 ), rel = 0.15 )
324
329
325
330
326
331
@pytest .mark .lg_feature ("eet" )
0 commit comments