MCPcopy
hub / github.com/nats-io/nats.go / RunServerOnPort

Function RunServerOnPort

micro/test/service_test.go:1437–1441  ·  view source on GitHub ↗
(port int)

Source from the content-addressed store, hash-verified

1435}
1436
1437func RunServerOnPort(port int) *server.Server {
1438 opts := natsserver.DefaultTestOptions
1439 opts.Port = port
1440 return RunServerWithOptions(&opts)
1441}
1442
1443func RunServerWithOptions(opts *server.Options) *server.Server {
1444 return natsserver.RunServer(opts)

Callers 13

TestServiceBasicsFunction · 0.70
TestAddServiceFunction · 0.70
TestGroupsFunction · 0.70
TestMonitoringHandlersFunction · 0.70
TestContextHandlerFunction · 0.70
TestServiceStatsFunction · 0.70
TestRequestRespondFunction · 0.70
TestCustomQueueGroupFunction · 0.70
TestDisableQueueGroupFunction · 0.70

Calls 1

RunServerWithOptionsFunction · 0.70

Tested by

no test coverage detected