Flaky `test_mutate_mlco()` unit test
Opened this issue · 0 comments
SepShr commented
Unit test test_mutate_1_trajectory(self)
is flaky. The failed test case has the following output:
./test_mutate_mlco.py::TestMutateMLCO::test_mutate_1_trajectory Failed: [[-1, 0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-1, 0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]] == [[-1, 0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-1, 0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]]
File "/usr/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
yield
File "/usr/lib/python3.8/unittest/case.py", line 676, in run
self._callTestMethod(testMethod)
File "/usr/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
method()
File "/home/sepehr/AV/MLCSHE/MLCSHE/tests/test_mutate_mlco.py", line 57, in test_mutate_1_trajectory
self.assertNotEqual(mutated_mlco, initial_mlco)
File "/usr/lib/python3.8/unittest/case.py", line 921, in assertNotEqual
raise self.failureException(msg)
AssertionError: [[-1, 0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-1, 0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]] == [[-1, 0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-1, 0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]]