aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorTeddy Wing2017-11-12 20:06:13 +0100
committerTeddy Wing2017-11-12 20:06:13 +0100
commit81390cd0d3b36f732f6e6071160fb944e1f12892 (patch)
tree6b1bdace5e4b43ca7c0ef82916e3e83d964d88d8 /src/main.rs
parentc3eac830c7713f2e2740b95fe2ef3664ae0a021d (diff)
downloadkipper-81390cd0d3b36f732f6e6071160fb944e1f12892.tar.bz2
Update tests for Jenkins mock URL
Now that the Jenkins API URL is getting passed in via command line and function argument, update the tests to pass it in directly. Remove the test/non-test versions of `jenkins_url` from `find_and_track_build_and_update_status()` because we can pass in the mock URL directly to the `get_jobs()` and `request_job()` functions in tests. Make the `jenkins_url` argument to `find_and_track_build_and_update_status()` not a reference so that we don't have to reset it in the function to a `to_owned()` version.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index fdcdeeb..3f3351a 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -105,7 +105,7 @@ fn main() {
match jenkins::find_and_track_build_and_update_status(
commit_ref,
- &jenkins_url,
+ jenkins_url.clone(),
&jenkins_user_id,
&jenkins_token,
github_token.clone(),