Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[test] fix test_ensure_delay_when_tilde_in_custom_schedule
This commit relax constrains on possible test failure @staticmethod def test_ensure_delay_when_tilde_in_custom_schedule(mocker, capsys): svcname = "pytest" mocker.patch.dict(os.environ, {"OSVC_DETACHED": "1"}) with capsys.disabled(): assert Mgr()(argv=["-s", svcname, "create", "--kw", "status_schedule=~08:01-09:59"]) == 0 assert Mgr()(argv=["-s", svcname, "print", "schedule"]) == 0 next_runs = set() for i in range(4): assert Mgr()(argv=["-s", svcname, "print", "schedule", "--local", "--format", "json"]) == 0 action = get_action(json.loads(capsys.readouterr().out), "status") next_runs.add(action["next_run"]) > assert len(next_runs) > 3 E assert 3 > 3 E + where 3 = len({1700042310.0, 1700042326.0, 1700042331.0})
- Loading branch information