Skip to content

Commit

Permalink
Merge pull request #83 from chef/functional-is-a-go
Browse files Browse the repository at this point in the history
Merged change dcffbe65-2af2-4e15-b475-5677840badc0

From review branch functional-is-a-go into master

Signed-off-by: reset <[email protected]>
  • Loading branch information
chef-delivery committed Nov 16, 2015
2 parents cdfc9e5 + 1d10737 commit 1b65b97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/util/discovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use url;
use std::thread;

pub fn clear(key: &str) {
let url = format!("http://etcd:4001/v2/keys/test/simple_service/{}/{}?recursive=true", thread::current().name().unwrap_or("main"), key);
let url = format!("http://etcd:4001/v2/keys/bldr/simple_service/{}/{}?recursive=true", thread::current().name().unwrap_or("main"), key);
let client = Client::new();
let request = client.delete(&url);
let res = request.send().unwrap_or_else(|x| panic!("Error: {:?}; Failed to delete {}", x, url));
Expand All @@ -33,7 +33,7 @@ pub fn clear(key: &str) {
}

pub fn set(key: &str, body: &str) {
let url = format!("http://etcd:4001/v2/keys/test/simple_service/{}/{}", thread::current().name().unwrap_or("main"), key);
let url = format!("http://etcd:4001/v2/keys/bldr/simple_service/{}/{}", thread::current().name().unwrap_or("main"), key);
let client = Client::new();
let req_options = vec![("value", body)];
let req_body = url::form_urlencoded::serialize(&req_options);
Expand Down

0 comments on commit 1b65b97

Please sign in to comment.