MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / WaitForDoc

Method WaitForDoc

rest/utilities_testing.go:597–601  ·  view source on GitHub ↗
(docid string)

Source from the content-addressed store, hash-verified

595}
596
597func (rt *RestTester) WaitForDoc(docid string) {
598 seq, err := rt.SequenceForDoc(docid)
599 require.NoError(rt.TB(), err, "Error getting sequence for doc %s", docid)
600 rt.WaitForSequence(seq)
601}
602
603func (rt *RestTester) SequenceForDoc(docid string) (seq uint64, err error) {
604 collection, ctx := rt.GetSingleTestDatabaseCollection()

Callers 8

TestX509RoundtripUsingIPFunction · 0.95
TestChannelAccessChangesFunction · 0.95
TestSingleCollectionDCPFunction · 0.95
TestRequestPlusPullFunction · 0.45
TestBlipRefreshUserFunction · 0.45
TestBlipMergeVersionsFunction · 0.45

Calls 3

SequenceForDocMethod · 0.95
TBMethod · 0.95
WaitForSequenceMethod · 0.95

Tested by 8

TestX509RoundtripUsingIPFunction · 0.76
TestChannelAccessChangesFunction · 0.76
TestSingleCollectionDCPFunction · 0.76
TestRequestPlusPullFunction · 0.36
TestBlipRefreshUserFunction · 0.36
TestBlipMergeVersionsFunction · 0.36