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

Function sendGetCheckpointRequest

rest/blip_stats_test.go:19–27  ·  view source on GitHub ↗
(bt *BlipTester)

Source from the content-addressed store, hash-verified

17)
18
19func sendGetCheckpointRequest(bt *BlipTester) {
20 t := bt.restTester.TB()
21 rq := bt.newRequest()
22 rq.SetProfile("getCheckpoint")
23 require.True(t, bt.sender.Send(rq))
24 errorCode, exists := rq.Response().Properties["Error-Code"]
25 require.True(t, exists)
26 require.Equal(t, "404", errorCode)
27}
28
29// waitForStatGreaterThan will retry for up to 20 seconds until the result of getStatFunc is equal to the expected value.
30func waitForStatGreaterThan(t *testing.T, getStatFunc func() int64, expected int64) {

Callers 1

TestBlipStatsBasicFunction · 0.85

Calls 5

newRequestMethod · 0.80
TBMethod · 0.65
SendMethod · 0.65
ResponseMethod · 0.45
EqualMethod · 0.45

Tested by

no test coverage detected