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

Function StartBootstrapServer

rest/utilities_testing_bootstrap.go:176–178  ·  view source on GitHub ↗

StartBootstrapServer starts a server with a default bootstrap config, and returns a function to close the server. This differs from RestTester in that this is running a real server listening on random port. Prefer use of RestTester for more ergnomic APIs.

(t *testing.T)

Source from the content-addressed store, hash-verified

174
175// StartBootstrapServer starts a server with a default bootstrap config, and returns a function to close the server. This differs from RestTester in that this is running a real server listening on random port. Prefer use of RestTester for more ergnomic APIs.
176func StartBootstrapServer(t *testing.T) (*ServerContext, func()) {
177 return StartBootstrapServerWithGroupID(t, nil)
178}
179
180// StartBootstrapServerWithGroupID starts a server with a bootstrap config, and returns a function to close the server. This differs from RestTester in that this is running a real server listening on random port. Prefer use of random groupID if appropriate. Prefer use of RestTester for more ergonomic APIs.
181func StartBootstrapServerWithGroupID(t *testing.T, groupID *string) (*ServerContext, func()) {

Calls 1