소스 검색

fix flaky test

jrobinAV 1 년 전
부모
커밋
5b9eecd411
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tests/core/_orchestrator/test_orchestrator__submit.py

+ 1 - 1
tests/core/_orchestrator/test_orchestrator__submit.py

@@ -53,7 +53,7 @@ def test_submit_scenario_development_mode():
     scenario.dn_0.write(0)  # input data is made ready
     orchestrator = _OrchestratorFactory._build_orchestrator()
 
-    submit_time = datetime.now()
+    submit_time = datetime.now() + 1  # +1 to make sure the edit time of dn_0 is before the submit time
     with freezegun.freeze_time(submit_time):
         jobs = orchestrator.submit(scenario)  # scenario is executed directly in development mode