Fixup tests for changes to export functions

This commit is contained in:
Derek Collison
2013-07-17 09:22:22 -05:00
parent ec391c9f86
commit 19a9b07b4d
5 changed files with 12 additions and 12 deletions

View File

@@ -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) {

View File

@@ -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

View File

@@ -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) {

View File

@@ -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) {

View File

@@ -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) {