Skip to content

Commit 9c00108

Browse files
committed
use make_route in test_sending_message_via_private_route
1 parent edff3f8 commit 9c00108

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/lib.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ mod tests {
3131
use anyhow::Result;
3232
use bytes::Bytes;
3333
use common::init_veilid;
34+
use common::make_route;
3435
use rpc::RpcClient;
3536
use rpc::RpcService;
3637
use std::path::Path;
@@ -291,14 +292,9 @@ mod tests {
291292
);
292293

293294
// Create a new private route
294-
let (route_id, route_id_blob) = veilid_api
295-
.new_custom_private_route(
296-
&VALID_CRYPTO_KINDS,
297-
veilid_core::Stability::LowLatency,
298-
veilid_core::Sequencing::NoPreference,
299-
)
300-
.await
301-
.expect("Failed to create route");
295+
let (route_id, route_id_blob) = make_route(&veilid_api)
296+
.await
297+
.expect("Failed to create route after retries");
302298

303299
// Store the route_id_blob in DHT
304300
repo.store_route_id_in_dht(route_id_blob.clone())

0 commit comments

Comments
 (0)