Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions rest/blip_api_delta_sync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1256,12 +1256,15 @@ func TestBlipDeltaComputationFromBackupRev(t *testing.T) {

// create doc1
version1 := rt.PutDoc(docID, `{"foo": "bar", "version": "1", "channels": ["alice"]}`)
rt.WaitForPendingChanges()

btcRunner.StartOneshotPull(client.id)
btcRunner.WaitForVersion(client.id, docID, version1)

// create rev 2
version2 := rt.UpdateDoc(docID, version1, `{"foo": "bar", "version": "2", "channels": ["alice"]}`)
rt.WaitForPendingChanges()

rt.GetDatabase().FlushRevisionCacheForTest() // force delta computation from backup rev
btcRunner.StartOneshotPull(client.id)
btcRunner.WaitForVersion(client.id, docID, version2)
Expand Down
Loading