(hq_env: HqEnv, tmp_path)
| 158 | |
| 159 | |
| 160 | def test_repeated_restore(hq_env: HqEnv, tmp_path): |
| 161 | journal_path = os.path.join(tmp_path, "my.journal") |
| 162 | hq_env.start_server(args=["--journal", journal_path]) |
| 163 | hq_env.command(["submit", "--array=0-3", "--", "uname"]) |
| 164 | hq_env.stop_server() |
| 165 | |
| 166 | hq_env.start_server(args=["--journal", journal_path]) |
| 167 | hq_env.command(["submit", "--array=0-3", "--", "uname"]) |
| 168 | time.sleep(1.0) |
| 169 | hq_env.stop_server() |
| 170 | |
| 171 | hq_env.start_server(args=["--journal", journal_path]) |
| 172 | out = hq_env.command(["--output-mode=json", "job", "list"], as_json=True) |
| 173 | assert len(out) == 2 |
| 174 | |
| 175 | |
| 176 | def test_restore_not_fully_written_log(hq_env: HqEnv, tmp_path): |
nothing calls this directly
no test coverage detected