RunServerOnPort will run a server on the given port.
(port int)
| 114 | |
| 115 | // RunServerOnPort will run a server on the given port. |
| 116 | func RunServerOnPort(port int) *server.Server { |
| 117 | opts := natsserver.DefaultTestOptions |
| 118 | opts.Port = port |
| 119 | opts.Cluster.Name = "testing" |
| 120 | return RunServerWithOptions(&opts) |
| 121 | } |
| 122 | |
| 123 | // RunServerWithOptions will run a server with the given options. |
| 124 | func RunServerWithOptions(opts *server.Options) *server.Server { |
no test coverage detected