aboutsummaryrefslogtreecommitdiff
path: root/planetwars-matchrunner/src
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-09-22 19:38:09 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-09-22 19:38:09 +0200
commit8f3621813e44df2dace49a6400cfe870bc3778ea (patch)
tree48558bae0fc4d1c7700e3a88787b8e3728835776 /planetwars-matchrunner/src
parent9643ccf6d69cc34f56fff454f1c0aa3e34a93d08 (diff)
downloadplanetwars.dev-8f3621813e44df2dace49a6400cfe870bc3778ea.tar.xz
planetwars.dev-8f3621813e44df2dace49a6400cfe870bc3778ea.zip
test docker runner timeouts
Diffstat (limited to 'planetwars-matchrunner/src')
-rw-r--r--planetwars-matchrunner/src/lib.rs2
-rw-r--r--planetwars-matchrunner/src/match_context.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/planetwars-matchrunner/src/lib.rs b/planetwars-matchrunner/src/lib.rs
index fcd4799..d26e810 100644
--- a/planetwars-matchrunner/src/lib.rs
+++ b/planetwars-matchrunner/src/lib.rs
@@ -16,7 +16,7 @@ use match_log::{create_log_sink, MatchLogger};
use planetwars_rules::PwConfig;
use serde::{Deserialize, Serialize};
-use self::match_context::{EventBus, PlayerHandle};
+pub use self::match_context::{EventBus, PlayerHandle};
pub struct MatchConfig {
pub map_name: String,
diff --git a/planetwars-matchrunner/src/match_context.rs b/planetwars-matchrunner/src/match_context.rs
index 1dac09b..859b11d 100644
--- a/planetwars-matchrunner/src/match_context.rs
+++ b/planetwars-matchrunner/src/match_context.rs
@@ -150,7 +150,7 @@ impl Future for Request {
}
}
-#[derive(Debug, Clone)]
+#[derive(Debug, Clone, PartialEq, Eq)]
pub enum RequestError {
Timeout,
}