Skip to content

Commit 245dd54

Browse files
committed
thing
1 parent a306cd0 commit 245dd54

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/resiliency_tests.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,19 @@ fn create_proxies_and_configs() -> (Vec<ProxyDrop>, String) {
5050
TOXI_ADDR.get_or_init(|| toxi_addr);
5151
});
5252

53-
let local_url = match std::env::var_os("NODE_LOCAL_CACHE") {
53+
let mut local_url = match std::env::var_os("MEMCACHED_URL") {
5454
Some(v) => v.into_string().unwrap(),
5555
None => "127.0.0.1:11211".to_string(), // use IPV4 so that it resolves to a single Server
5656
};
57+
local_url = local_url.strip_prefix("http://").unwrap().to_string();
58+
5759
let local_port = PROXY_PORT.fetch_add(1, std::sync::atomic::Ordering::Relaxed);
5860

5961
let toxi_addr = TOXI_ADDR.get().unwrap();
6062
let toxic_local_addr = format!("{}:{}", toxi_addr.ip(), local_port);
6163

64+
println!("toxic_local_addr: {}", toxic_local_addr);
65+
6266
let proxies = vec![ProxyPack::new(
6367
format!("local-memcached-{}", local_port),
6468
toxic_local_addr.clone(),

0 commit comments

Comments
 (0)