From 02e5c2a8687a0beb907a29121a9d8dbe8c672530 Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Sun, 15 Jul 2018 22:08:41 +0200 Subject: Decreased running time of monte carlo test --- tests/monte_carlo_test.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/monte_carlo_test.rs b/tests/monte_carlo_test.rs index 43476fd..87feadb 100644 --- a/tests/monte_carlo_test.rs +++ b/tests/monte_carlo_test.rs @@ -14,6 +14,8 @@ fn it_does_a_normal_turn_successfully() { Ok(ok) => ok, Err(error) => panic!("Error while parsing JSON file: {}", error) }; - let max_time = Duration::milliseconds(1950); + let max_time = Duration::milliseconds(200); strategy::monte_carlo::choose_move(&settings, &state, &start_time, max_time); + + assert!(start_time.to(PreciseTime::now()) < max_time + Duration::milliseconds(10)) } -- cgit v1.2.3