30rooms/60version_upgrade: "$user_type user has push rules copied to upgraded room" does not properly fail on 0 return #1314
Labels
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
sytest/tests/30rooms/60version_upgrade.pl
Lines 630 to 643 in 4784b7e
Looking into how tests are returned and checked, it seems that only with a
check =>
subroutine it'll actually check if the value returned is truthy or not:sytest/run-tests.pl
Lines 846 to 856 in 74f5931
Finally,
$f_test
is awaited here:sytest/run-tests.pl
Lines 864 to 869 in 74f5931
As the above test does not have a check function, the result of
0
seems to be ignored.I ran into this while converting the test to complement, and dendrite did not pass the test, while it does pass the sytest.
I'm not proficient in perl, and the codebase takes odd twists and turns when defining and returning test results like this, so please someone proficient double-check my research, and see if this bug is indeed real.
The text was updated successfully, but these errors were encountered: