Skip to content

Commit fefdf8d

Browse files
committed
Remove proxy test
1 parent 511a1e9 commit fefdf8d

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

yaml_test_runner/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ serde_yaml = "0.8.11"
3131
serde_json = { version = "~1", features = ["arbitrary_precision"] }
3232
simple_logger = "1.9.0"
3333
syn = { version = "~0.11", features = ["full"] }
34-
sysinfo = "0.9.6"
3534
url = "2.1.1"
3635
yaml-rust = "0.4.3"
3736
tar = "~0.4"

yaml_test_runner/tests/common/client.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ use elasticsearch::{
5252
use once_cell::sync::Lazy;
5353
use serde_json::{json, Value};
5454
use std::ops::Deref;
55-
use sysinfo::SystemExt;
5655
use url::Url;
5756

5857
fn cluster_addr() -> String {
@@ -62,12 +61,6 @@ fn cluster_addr() -> String {
6261
}
6362
}
6463

65-
/// Determines if Fiddler.exe proxy process is running
66-
fn running_proxy() -> bool {
67-
let system = sysinfo::System::new();
68-
!system.get_process_by_name("Fiddler").is_empty()
69-
}
70-
7164
static GLOBAL_CLIENT: Lazy<Elasticsearch> = Lazy::new(|| {
7265
let mut url = Url::parse(cluster_addr().as_ref()).unwrap();
7366

@@ -103,11 +96,6 @@ static GLOBAL_CLIENT: Lazy<Elasticsearch> = Lazy::new(|| {
10396
None => builder,
10497
};
10598

106-
if running_proxy() {
107-
let proxy_url = Url::parse("http://localhost:8888").unwrap();
108-
builder = builder.proxy(proxy_url, None, None);
109-
}
110-
11199
let transport = builder.build().unwrap();
112100
Elasticsearch::new(transport)
113101
});

0 commit comments

Comments
 (0)