Skip to content

Commit 8a2b942

Browse files
committed
test:removed get_grpc_url from unnecesary spots
1 parent 131c618 commit 8a2b942

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

crates/tap-agent/tests/sender_account_manager_test.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright 2023-, Edge & Node, GraphOps, and Semiotic Labs.
22
// SPDX-License-Identifier: Apache-2.0
33

4-
use std::{collections::HashSet, str::FromStr};
4+
use std::collections::HashSet;
55

66
use indexer_tap_agent::{
77
agent::{
@@ -10,12 +10,10 @@ use indexer_tap_agent::{
1010
sender_allocation::SenderAllocationMessage,
1111
},
1212
test::{
13-
create_received_receipt, create_sender_accounts_manager, get_grpc_url, store_receipt,
14-
ALLOCATION_ID_0,
13+
create_received_receipt, create_sender_accounts_manager, store_receipt, ALLOCATION_ID_0,
1514
},
1615
};
1716
use ractor::ActorRef;
18-
use reqwest::Url;
1917
use serde_json::json;
2018
use sqlx::PgPool;
2119
use test_assets::{flush_messages, TAP_SENDER as SENDER, TAP_SIGNER as SIGNER};
@@ -63,7 +61,6 @@ async fn sender_account_manager_layer_test(pgpool: PgPool) {
6361

6462
let (prefix, notify, (actor, join_handle)) = create_sender_accounts_manager()
6563
.pgpool(pgpool.clone())
66-
.aggregator_endpoint(Url::from_str(&get_grpc_url().await).unwrap())
6764
.network_subgraph(&mock_network_subgraph_server.uri())
6865
.escrow_subgraph(&mock_escrow_subgraph_server.uri())
6966
.call()

crates/tap-agent/tests/sender_account_test.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
// Copyright 2023-, Edge & Node, GraphOps, and Semiotic Labs.
22
// SPDX-License-Identifier: Apache-2.0
33

4-
use std::{collections::HashSet, str::FromStr};
4+
use std::collections::HashSet;
55

66
use indexer_tap_agent::{
77
agent::sender_account::SenderAccountMessage,
8-
test::{create_received_receipt, create_sender_account, get_grpc_url, store_receipt},
8+
test::{create_received_receipt, create_sender_account, store_receipt},
99
};
1010
use ractor::concurrency::Duration;
11-
use reqwest::Url;
1211
use serde_json::json;
1312
use sqlx::PgPool;
1413
use test_assets::{ALLOCATION_ID_0, TAP_SIGNER as SIGNER};
@@ -19,7 +18,6 @@ use wiremock::{
1918
};
2019

2120
const TRIGGER_VALUE: u128 = 500;
22-
const RECEIPT_LIMIT: u64 = 10000;
2321

2422
// This test should ensure the full flow starting from
2523
// sender account layer to work, up to closing an allocation
@@ -43,12 +41,9 @@ async fn sender_account_layer_test(pgpool: PgPool) {
4341

4442
let (sender_account, notify, _, _) = create_sender_account()
4543
.pgpool(pgpool.clone())
46-
.rav_request_trigger_value(TRIGGER_VALUE)
4744
.max_amount_willing_to_lose_grt(TRIGGER_VALUE + 1000)
4845
.escrow_subgraph_endpoint(&mock_escrow_subgraph_server.uri())
4946
.network_subgraph_endpoint(&mock_server.uri())
50-
.rav_request_receipt_limit(RECEIPT_LIMIT)
51-
.aggregator_endpoint(Url::from_str(&get_grpc_url().await).unwrap())
5247
.call()
5348
.await;
5449

0 commit comments

Comments
 (0)