From 9d481f0c7058e7af7ef68fb79703617a758b471b Mon Sep 17 00:00:00 2001 From: Mingwei Samuel Date: Sat, 11 May 2024 23:33:54 -0700 Subject: [PATCH] update test error messages --- riven/tests/testutils.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/riven/tests/testutils.rs b/riven/tests/testutils.rs index c557d01..12e0e93 100644 --- a/riven/tests/testutils.rs +++ b/riven/tests/testutils.rs @@ -165,7 +165,7 @@ pub async fn tft_match_v1_get( let p = riot_api().tft_match_v1().get_match(route, matche); let m = p .await - .map_err(|e| format!("Failed to get match {}: {:?}", matche, e))? + .map_err(|e| format!("Failed to get tft match {}: {:?}", matche, e))? .ok_or(format!("Match {} not found.", matche))?; if matche != &*m.metadata.match_id { @@ -265,7 +265,7 @@ pub async fn match_v5_get_timeline( let p = riot_api().match_v5().get_timeline(route, matche); let m = p .await - .map_err(|e| format!("Failed to get match {}: {:?}", matche, e))? + .map_err(|e| format!("Failed to get match timeline {}: {:?}", matche, e))? .ok_or(format!("Match {} not found.", matche))?; if matche != &*m.metadata.match_id { return Err(format!( @@ -456,7 +456,7 @@ pub async fn val_match_v1_get( let p = riot_api().val_match_v1().get_match(route, matche); let m = p .await - .map_err(|e| format!("Failed to get match {}: {:?}", matche, e))? + .map_err(|e| format!("Failed to get val match {}: {:?}", matche, e))? .ok_or(format!("Match {} not found.", matche))?; // TODO(mingwei): Check the match a bit.