Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ten0 committed May 25, 2024
1 parent f062b4d commit 10a8a86
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions scylla/tests/integration/shard_aware_batching.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,16 +197,21 @@ async fn run_test(
.await
.expect("Each node should have received at least one message")
.1
.expect("Calls should be shard-aware")
.unwrap_or({
// Cassandra case (non-scylla)
0
})
.into(),
);
loop {
match rx.try_recv() {
Ok((_, call_shard)) => {
shards_calls.push(call_shard.expect("Calls should all be shard-aware").into())
}
Err(_) => break,
}
while let Ok((_, call_shard)) = rx.try_recv() {
shards_calls.push(
call_shard
.unwrap_or({
// Cassandra case (non-scylla)
0
})
.into(),
)
}
nodes_shards_calls.push(shards_calls);
}
Expand Down

0 comments on commit 10a8a86

Please sign in to comment.