Skip to content

Commit 3f74611

Browse files
committed
fix(tests): fix release build
1 parent 1053282 commit 3f74611

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/src/fixture/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ impl TestContext {
269269
let file_bytes = self
270270
.link_resolver
271271
.cat(
272-
&LinkResolverContext::test(),
272+
&LinkResolverContext::new(&deployment.hash, &logger),
273273
&deployment.hash.to_ipfs_link(),
274274
)
275275
.await

tests/src/recipe.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ use crate::{
22
fixture::{stores, Stores, TestInfo},
33
helpers::run_cmd,
44
};
5-
use graph::ipfs;
65
use graph::prelude::{DeploymentHash, SubgraphName};
6+
use graph::{ipfs, prelude::MetricsRegistry};
77
use std::process::Command;
88
pub struct RunnerTestRecipe {
99
pub stores: Stores,
@@ -93,7 +93,7 @@ pub async fn build_subgraph_with_pnpm_cmd_and_arg(
9393
// Test that IPFS is up.
9494
ipfs::IpfsRpcClient::new(
9595
ipfs::ServerAddress::local_rpc_api(),
96-
ipfs::IpfsMetrics::test(),
96+
ipfs::IpfsMetrics::new(&MetricsRegistry::mock()),
9797
&graph::log::discard(),
9898
)
9999
.await

0 commit comments

Comments
 (0)