We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e41cb6 commit 7d94b65Copy full SHA for 7d94b65
tests/trainer/trainer_test.py
@@ -1026,8 +1026,8 @@ def test_trainer(self):
1026
with open(exp_save_path, "r", encoding="utf-8") as f:
1027
lines = f.readlines()
1028
self.assertTrue(
1029
- len(lines) > 2 * 4 * 2
1030
- ) # total_steps * repeat_times * batch_size * min_waited_tasks
+ len(lines) >= 2 * 4 * 2
+ ) # at least contain total_steps * repeat_times * batch_size * min_waited_tasks
1031
1032
def tearDown(self):
1033
# remove dir only when the test passed
0 commit comments