mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
PR feedback (nits)
This commit is contained in:
@@ -32,9 +32,7 @@ func TestDefaultOptions(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestOptions_RandomPort(t *testing.T) {
|
||||
opts := &Options{
|
||||
Port: RANDOM_PORT,
|
||||
}
|
||||
opts := &Options{Port: RANDOM_PORT}
|
||||
processOptions(opts)
|
||||
|
||||
if opts.Port != 0 {
|
||||
|
||||
@@ -11,9 +11,7 @@ import (
|
||||
)
|
||||
|
||||
func TestResolveRandomPort(t *testing.T) {
|
||||
opts := &server.Options{
|
||||
Port: server.RANDOM_PORT,
|
||||
}
|
||||
opts := &server.Options{Port: server.RANDOM_PORT}
|
||||
s := RunServer(opts)
|
||||
defer s.Shutdown()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user