mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
@@ -45,9 +45,10 @@ func testDefaultClusterOptionsForLeafNodes() *Options {
|
||||
return &o
|
||||
}
|
||||
|
||||
func RunRandClientPortServer() *Server {
|
||||
func RunRandClientPortServer(t *testing.T) *Server {
|
||||
opts := DefaultTestOptions
|
||||
opts.Port = -1
|
||||
opts.StoreDir = t.TempDir()
|
||||
return RunServer(&opts)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user