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

Method WaitForVersion

rest/utilities_testing_isgr.go:133–140  ·  view source on GitHub ↗
(docID string, rt *RestTester, version DocVersion)

Source from the content-addressed store, hash-verified

131}
132
133func (runner *SGRTestRunner) WaitForVersion(docID string, rt *RestTester, version DocVersion) {
134 if !slices.Contains(runner.SupportedSubprotocols, db.CBMobileReplicationV4.SubprotocolString()) {
135 // only assert on rev tree IDs when we're not replicating using v4 protocol
136 rt.WaitForVersionRevIDOnly(docID, version)
137 return
138 }
139 rt.WaitForVersion(docID, version)
140}
141
142func (runner *SGRTestRunner) WaitForTombstone(docID string, rt *RestTester, version DocVersion) {
143 if !slices.Contains(runner.SupportedSubprotocols, db.CBMobileReplicationV4.SubprotocolString()) {

Calls 3

SubprotocolStringMethod · 0.80
ContainsMethod · 0.65