From dd76f4de394da3d9ce8cd19b853da10d56caf8cd Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 11 Nov 2017 23:01:53 +0100 Subject: Handle `Result` return values in tests Update our failing test suite to work with our new return types now that many of our functions return `Result`s. Since these are tests, we handle them by panicking with error messages. --- src/github.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/github.rs') diff --git a/src/github.rs b/src/github.rs index f24d1f0..731d261 100644 --- a/src/github.rs +++ b/src/github.rs @@ -104,7 +104,7 @@ mod tests { "https://jenkins.example.com/job/octocat/3".to_string(), None, "continuous-integration/jenkins".to_string() - ); + ).expect("Failed to update commit status"); mock.assert(); } -- cgit v1.2.3