Skip to content

Commit 5342293

Browse files
committed
fix(ipfs): use type name when creating a default deployment hash for tests
1 parent 5746ccb commit 5342293

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

graph/src/ipfs/gateway_client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ mod tests {
582582

583583
let server = mock_server().await;
584584
let client = Arc::new(
585-
IpfsGatewayClient::new_unchecked(server.uri(), Default::default(), &logger).unwrap(),
585+
IpfsGatewayClient::new_unchecked(server.uri(), IpfsMetrics::test(), &logger).unwrap(),
586586
);
587587

588588
// Set up mock to fail twice then succeed to trigger retry with warning logs
@@ -604,7 +604,7 @@ mod tests {
604604
// This should trigger retry logs because we set up failures first
605605
let _result = client
606606
.cat(
607-
&Default::default(),
607+
&IpfsContext::test(),
608608
&path,
609609
usize::MAX,
610610
None,

tests/src/recipe.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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::default(),
96+
ipfs::IpfsMetrics::test(),
9797
&graph::log::discard(),
9898
)
9999
.await

0 commit comments

Comments
 (0)