0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2025-07-16 04:15:21 +00:00

fix flaky replication test

This commit is contained in:
ad hoc
2023-11-21 14:38:04 +01:00
parent 17b380b902
commit bcd920d54f

View File

@ -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")