Skip to content

Commit 46c7745

Browse files
committed
test: remove dummy ulr
1 parent 3be8d30 commit 46c7745

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

crates/tap-agent/src/agent/sender_allocation.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,6 @@ pub mod tests {
907907
},
908908
};
909909

910-
const DUMMY_URL: &str = "http://localhost:1234";
911910
const RECEIPT_LIMIT: u64 = 1000;
912911

913912
async fn mock_escrow_subgraph() -> (MockServer, MockGuard) {
@@ -986,14 +985,14 @@ pub mod tests {
986985
#[bon::builder]
987986
async fn create_sender_allocation(
988987
pgpool: PgPool,
989-
#[builder(default = DUMMY_URL.to_string())] sender_aggregator_endpoint: String,
988+
sender_aggregator_endpoint: Option<String>,
990989
escrow_subgraph_endpoint: &str,
991990
#[builder(default = 1000)] rav_request_receipt_limit: u64,
992991
sender_account: Option<ActorRef<SenderAccountMessage>>,
993992
) -> (ActorRef<SenderAllocationMessage>, Arc<Notify>) {
994993
let args = create_sender_allocation_args(
995994
pgpool,
996-
sender_aggregator_endpoint,
995+
sender_aggregator_endpoint.unwrap_or(get_grpc_url().await),
997996
escrow_subgraph_endpoint,
998997
rav_request_receipt_limit,
999998
sender_account,

0 commit comments

Comments
 (0)