We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f062b4d commit 10a8a86Copy full SHA for 10a8a86
scylla/tests/integration/shard_aware_batching.rs
@@ -197,16 +197,21 @@ async fn run_test(
197
.await
198
.expect("Each node should have received at least one message")
199
.1
200
- .expect("Calls should be shard-aware")
+ .unwrap_or({
201
+ // Cassandra case (non-scylla)
202
+ 0
203
+ })
204
.into(),
205
);
- loop {
- match rx.try_recv() {
- Ok((_, call_shard)) => {
206
- shards_calls.push(call_shard.expect("Calls should all be shard-aware").into())
207
- }
208
- Err(_) => break,
209
+ while let Ok((_, call_shard)) = rx.try_recv() {
+ shards_calls.push(
+ call_shard
210
211
212
213
+ .into(),
214
+ )
215
}
216
nodes_shards_calls.push(shards_calls);
217
0 commit comments