Skip to content

Commit 5d7975a

Browse files
committed
pass ctx to space in checkpointer test
1 parent a6967f6 commit 5d7975a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/checkpointer_tests.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ Checkpointer.get_model_prog_state(sim::DummySimulation) = sim.state
2020
end
2121

2222
@testset "checkpoint_model_state, restart_model_state!" begin
23-
boundary_space = TestHelper.create_space(FT)
24-
t = 1
2523
comms_ctx = ClimaComms.context(ClimaComms.CPUSingleThreaded())
24+
boundary_space = TestHelper.create_space(FT; comms_ctx = comms_ctx)
25+
t = 1
2626
# old sim run
2727
sim = DummySimulation(CC.Fields.FieldVector(T = ones(boundary_space)))
2828
Checkpointer.checkpoint_model_state(sim, comms_ctx, t, output_dir = "test_checkpoint")

test/runtests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ end
3636
gpu_broken || @safetestset "PostProcessor tests" begin
3737
include("postprocessor_tests.jl")
3838
end
39-
gpu_broken || @safetestset "Checkpointer tests" begin
39+
@safetestset "Checkpointer tests" begin
4040
include("checkpointer_tests.jl")
4141
end
4242
gpu_broken || @safetestset "experiment test: CoupledSims tests" begin

0 commit comments

Comments
 (0)