mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-17 03:24:40 -07:00
Fixup tests for changes to export functions
This commit is contained in:
@@ -42,10 +42,10 @@ const AUTH_PORT=10422
|
||||
const AUTH_TOKEN = "_YZZ22_"
|
||||
|
||||
func runAuthServerWithToken() *server.Server {
|
||||
opts := defaultServerOptions
|
||||
opts := DefaultTestOptions
|
||||
opts.Port = AUTH_PORT
|
||||
opts.Authorization = AUTH_TOKEN
|
||||
return runServer(&opts)
|
||||
return RunServer(&opts)
|
||||
}
|
||||
|
||||
func TestNoAuthClient(t *testing.T) {
|
||||
@@ -107,11 +107,11 @@ const AUTH_USER = "derek"
|
||||
const AUTH_PASS = "foobar"
|
||||
|
||||
func runAuthServerWithUserPass() *server.Server {
|
||||
opts := defaultServerOptions
|
||||
opts := DefaultTestOptions
|
||||
opts.Port = AUTH_PORT
|
||||
opts.Username = AUTH_USER
|
||||
opts.Password = AUTH_PASS
|
||||
return runServer(&opts)
|
||||
return RunServer(&opts)
|
||||
}
|
||||
|
||||
func TestNoUserOrPasswordClient(t *testing.T) {
|
||||
|
||||
@@ -19,9 +19,9 @@ const PERF_PORT = 8422
|
||||
|
||||
// For Go routine based server.
|
||||
func runBenchServer() *server.Server {
|
||||
opts := defaultServerOptions
|
||||
opts := DefaultTestOptions
|
||||
opts.Port = PERF_PORT
|
||||
return runServer(&opts)
|
||||
return RunServer(&opts)
|
||||
}
|
||||
|
||||
const defaultRecBufSize = 32768
|
||||
|
||||
@@ -9,9 +9,9 @@ import (
|
||||
)
|
||||
|
||||
func runPedanticServer() *server.Server {
|
||||
opts := defaultServerOptions
|
||||
opts := DefaultTestOptions
|
||||
opts.Port = PROTO_TEST_PORT
|
||||
return runServer(&opts)
|
||||
return RunServer(&opts)
|
||||
}
|
||||
|
||||
func TestPedanticSub(t *testing.T) {
|
||||
|
||||
@@ -17,11 +17,11 @@ const (
|
||||
)
|
||||
|
||||
func runPingServer() *server.Server {
|
||||
opts := defaultServerOptions
|
||||
opts := DefaultTestOptions
|
||||
opts.Port = PING_TEST_PORT
|
||||
opts.PingInterval = PING_INTERVAL
|
||||
opts.MaxPingsOut = PING_MAX
|
||||
return runServer(&opts)
|
||||
return RunServer(&opts)
|
||||
}
|
||||
|
||||
func TestPingInterval(t *testing.T) {
|
||||
|
||||
@@ -12,9 +12,9 @@ import (
|
||||
const PROTO_TEST_PORT = 9922
|
||||
|
||||
func runProtoServer() *server.Server {
|
||||
opts := defaultServerOptions
|
||||
opts := DefaultTestOptions
|
||||
opts.Port = PROTO_TEST_PORT
|
||||
return runServer(&opts)
|
||||
return RunServer(&opts)
|
||||
}
|
||||
|
||||
func TestProtoBasics(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user