We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5084c4a commit 0d4db6dCopy full SHA for 0d4db6d
bin/e2e-test-client/tests/integration_tests.rs
@@ -20,7 +20,6 @@ use std::{
20
time::Duration,
21
};
22
use tempfile::TempDir;
23
-// Used for writing assertions // Run programs
24
25
// Use Jemalloc
26
#[global_allocator]
crates/client/src/client.rs
@@ -413,7 +413,14 @@ impl FuelClient {
413
}
414
let urls = urls
415
.iter()
416
- .map(|url| Url::parse(url.as_ref()))
+ .map(|url| {
417
+ let reference = url.as_ref();
418
+ if !reference.starts_with("http") {
419
+ Url::parse(&format!("http://{reference}"))
420
+ } else {
421
+ Url::parse(reference)
422
+ }
423
+ })
424
.collect::<Result<Vec<_>, _>>()?;
425
Ok(Self {
426
transport: FailoverTransport::new(urls)?,
0 commit comments