mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 17:32:56 +00:00
fix exit condition
This commit is contained in:
@@ -61,6 +61,10 @@ impl RedisPublisherClient {
|
||||
.xread_options(&["neon:endpoints:testing"], &[&id], &opts)
|
||||
.await
|
||||
.unwrap();
|
||||
if res.keys.is_empty() {
|
||||
break;
|
||||
}
|
||||
|
||||
assert_eq!(res.keys.len(), 1);
|
||||
let res = res.keys.pop().unwrap();
|
||||
assert_eq!(res.key, "neon:endpoints:testing");
|
||||
|
||||
Reference in New Issue
Block a user