Skip to content

Commit

Permalink
fix flaky replication test
Browse files Browse the repository at this point in the history
  • Loading branch information
MarinPostma committed Nov 21, 2023
1 parent 3c453eb commit 18c2755
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libsql-server/tests/cluster/replication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ fn apply_partial_snapshot() {
notify.notify_waiters();

let client = Client::new();

// wait for replica to start up
while client.get("http://replica:8080/").await.is_err() {
tokio::time::sleep(Duration::from_millis(100)).await;
}

loop {
let resp = client
.get("http://replica:9090/v1/namespaces/default/stats")
Expand Down

0 comments on commit 18c2755

Please sign in to comment.