Skip to content

Commit

Permalink
Update test_run.py
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipDeegan authored Sep 20, 2024
1 parent 9cc9d7b commit b675d4c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/simulator/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,16 +223,16 @@ def tearDown(self):
def test_run(self):
sim = config()
self.register_diag_dir_for_cleanup(diag_dir)
Simulator(sim).run()
Simulator(sim).run().reset()
if cpp.mpi_rank() == 0:
plot(diag_dir)

for time in timestamps:
for q in ["divb", "Ranks", "N", "jz"]:
assert_file_exists_with_size_at_least(plot_file_for_qty(q, time))

for c in ["x", "y", "z"]:
assert_file_exists_with_size_at_least(plot_file_for_qty(f"b{c}", time))
for time in timestamps:
for q in ["divb", "Ranks", "N", "jz"]:
assert_file_exists_with_size_at_least(plot_file_for_qty(q, time))
for c in ["x", "y", "z"]:
assert_file_exists_with_size_at_least(plot_file_for_qty(f"b{c}", time))

cpp.mpi_barrier()

Expand Down

0 comments on commit b675d4c

Please sign in to comment.