Skip to content

Commit

Permalink
Fix flaky kv test
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
  • Loading branch information
Jarema committed Mar 11, 2024
1 parent 09e3cfd commit ce2280b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions async-nats/tests/kv_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -942,9 +942,9 @@ mod kv {
}
})
.retries(5)
.exponential_backoff(Duration::from_millis(100));
let name = local_kv.get("name").await.unwrap();
assert_eq!(from_utf8(&name.unwrap()).unwrap(), "rip");
.exponential_backoff(Duration::from_millis(500))
.await
.unwrap();

// Bind through leafnode connection but to origin KV.
let leaf_hub_js = async_nats::jetstream::with_domain(leaf, "HUB");
Expand Down

0 comments on commit ce2280b

Please sign in to comment.