mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-10-08 04:06:29 +08:00
Add some debug prints to the test that ocasionally fails on the CI
This commit is contained in:
parent
5f4907da5c
commit
3494055de7
@ -75,8 +75,10 @@ def test_duration():
|
|||||||
assert int(feature_print_times["Travel"]) == 0
|
assert int(feature_print_times["Travel"]) == 0
|
||||||
|
|
||||||
# Fake a print duration message
|
# Fake a print duration message
|
||||||
print_information._onPrintDurationMessage(0, {"Travel": 20}, [10])
|
print_information._onPrintDurationMessage(0, {"travel": 20}, [10])
|
||||||
|
|
||||||
|
# Some debugging code, since this test sometimes fails on the CI server.
|
||||||
|
print("Testing debug;", print_information.getFeaturePrintTimes(), print_information.currentPrintTime)
|
||||||
# We only set a single time, so the total time must be of the same value.
|
# We only set a single time, so the total time must be of the same value.
|
||||||
assert int(print_information.currentPrintTime) == 20
|
assert int(print_information.currentPrintTime) == 20
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user