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

Method WaitForDBState

rest/utilities_testing.go:1068–1070  ·  view source on GitHub ↗

WaitForDBState waits for the database to be in the specified state. Fails the test harness if the state is not reached within the timeout.

(stateWant string)

Source from the content-addressed store, hash-verified

1066
1067// WaitForDBState waits for the database to be in the specified state. Fails the test harness if the state is not reached within the timeout.
1068func (rt *RestTester) WaitForDBState(stateWant string) {
1069 rt.WaitForDatabaseState(rt.GetDatabase().Name, stateWant)
1070}
1071
1072// WaitForDatabaseState waits for the specified database to be in the specified state. Fails the test harness if the state is not reached within the timeout.
1073func (rt *RestTester) WaitForDatabaseState(dbName string, targetState string) {

Calls 2

WaitForDatabaseStateMethod · 0.95
GetDatabaseMethod · 0.95