Skip to content

Commit 612fbcc

Browse files
test: fix thermal piston test
1 parent 1827d63 commit 612fbcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Thermal/piston.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ using ModelingToolkitStandardLibrary.Blocks
4242
# The initial value doesn't add up to absolute zero, while the rest do. To avoid
4343
# tolerance on the latter, the test is split in two parts.
4444
@test sol[piston.gas.Q_flow][1] + sol[piston.coolant.Q_flow][1]0 atol=1e-6
45-
@test sol[piston.gas.Q_flow][2:end] + sol[piston.coolant.Q_flow][2:end] ==
46-
zeros(length(sol) - 1)
45+
@test sol[piston.gas.Q_flow][2:end] + sol[piston.coolant.Q_flow][2:end]
46+
zeros(length(sol) - 1) atol = 1e-6
4747
end

0 commit comments

Comments
 (0)