Skip to content

Commit 57cb528

Browse files
committed
test: use next()
Signed-off-by: Gustavo Inacio <[email protected]>
1 parent 896ae4d commit 57cb528

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

crates/service/tests/router_test.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,7 @@ async fn full_integration_test(database: PgPool) {
2929
.build()
3030
.expect("Failed to init HTTP client");
3131

32-
let allocation = INDEXER_ALLOCATIONS
33-
.values()
34-
.collect::<Vec<_>>()
35-
.pop()
36-
.unwrap()
37-
.clone();
32+
let allocation = INDEXER_ALLOCATIONS.values().next().unwrap().clone();
3833
let deployment = allocation.subgraph_deployment.id;
3934

4035
let mock_server = MockServer::start().await;

0 commit comments

Comments
 (0)