From b2e89f0dc72582bc90101caceabf8a878da62cf4 Mon Sep 17 00:00:00 2001 From: Tor Colvin Date: Tue, 13 Aug 2024 09:47:12 -0400 Subject: [PATCH] Add missing WaitForChanges to fix flake --- rest/blip_api_crud_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rest/blip_api_crud_test.go b/rest/blip_api_crud_test.go index d75de20caf..bf228bd2b6 100644 --- a/rest/blip_api_crud_test.go +++ b/rest/blip_api_crud_test.go @@ -3142,6 +3142,8 @@ func TestOnDemandImportBlipFailure(t *testing.T) { markerDocBody := fmt.Sprintf(`{"channel":%q}`, testCase.channel) _ = rt.PutDoc(markerDoc, markerDocBody) + // Wait for changed doc to be in cache before one shot pull + require.NoError(t, rt.WaitForPendingChanges()) rt.GetDatabase().FlushRevisionCacheForTest()