summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2018-07-15 22:08:41 +0200
committerJustin Worthe <justin@worthe-it.co.za>2018-07-15 22:08:41 +0200
commit02e5c2a8687a0beb907a29121a9d8dbe8c672530 (patch)
tree5df8888471210969e697c10254e5f76ad9561a98 /tests
parentcfbd535191552fc085762738c820f3cbc49a0ebd (diff)
Decreased running time of monte carlo test
Diffstat (limited to 'tests')
-rw-r--r--tests/monte_carlo_test.rs4
1 files changed, 3 insertions, 1 deletions
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))
}