Skip to content

Commit 7f6aad7

Browse files
committed
core: Remove use of uuid
1 parent f771284 commit 7f6aad7

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

Cargo.lock

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ anyhow = "1.0"
2424

2525
[dev-dependencies]
2626
tower-test = { git = "https://github.com/tower-rs/tower.git" }
27-
uuid = { version = "1.9.1", features = ["v4"] }
2827
wiremock = "0.6.1"

core/src/polling_monitor/ipfs_service.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ mod test {
104104
use graph::log::discard;
105105
use graph::tokio;
106106
use tower::ServiceExt;
107-
use uuid::Uuid;
108107
use wiremock::matchers as m;
109108
use wiremock::Mock;
110109
use wiremock::MockServer;
@@ -114,7 +113,11 @@ mod test {
114113

115114
#[tokio::test]
116115
async fn cat_file_in_folder() {
117-
let random_bytes = Uuid::new_v4().as_bytes().to_vec();
116+
let random_bytes = "One morning, when Gregor Samsa woke \
117+
from troubled dreams, he found himself transformed in his bed \
118+
into a horrible vermin"
119+
.as_bytes()
120+
.to_vec();
118121
let ipfs_file = ("dir/file.txt", random_bytes.clone());
119122

120123
let add_resp = add_files_to_local_ipfs_node_for_testing([ipfs_file])

0 commit comments

Comments
 (0)