Skip to content

Commit

Permalink
#414 minor changes to model_based.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-kuprianov committed Sep 23, 2020
1 parent 45ab864 commit ef474ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions light-client/tests/model_based.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ fn model_based_test(
},
Err(e) => panic!("failed to run Apalache; reason: {}", e),
}
output_env.copy_file_from_env(env, "counterexample.tla");
output_env.copy_file_from_env(env, "counterexample.json");

let transform_spec = root_env
.full_canonical_path("_jsonatr-lib/apalache_to_lite_test.json")
Expand All @@ -143,8 +145,6 @@ fn model_based_test(
let tc: SingleStepTestCase = env.parse_file("test.json").unwrap();
println!(" > running auto-generated test...");
single_step_test(tc, env, root_env, output_env);
output_env.copy_file_from_env(env, "counterexample.tla");
output_env.copy_file_from_env(env, "counterexample.json");
}

fn model_based_test_batch(batch: ApalacheTestBatch) -> Vec<(String, String)> {
Expand Down

0 comments on commit ef474ff

Please sign in to comment.