Updates for running in a windows container environment.

* Fixes unit tests running in windows containers with the default configuration.
This commit is contained in:
Colin Sullivan
2017-01-09 10:07:24 -07:00
parent 85a3032b4d
commit 6e9e491c79
2 changed files with 2 additions and 2 deletions

View File

@@ -96,7 +96,7 @@ func TestSysLoggerWithDebugAndTrace(t *testing.T) {
// TestSysLoggerWithDebugAndTrace tests remote event logging
func TestRemoteSysLoggerWithDebugAndTrace(t *testing.T) {
checkPrivledges(t)
logger := NewRemoteSysLogger("127.0.0.1", true, true)
logger := NewRemoteSysLogger("", true, true)
if !logger.debug {
t.Fatalf("Expected %t, received %t\n", true, logger.debug)
}

View File

@@ -1020,7 +1020,7 @@ func TestConnzWithRoutes(t *testing.T) {
NoLog: true,
NoSigs: true,
}
routeURL, _ := url.Parse(fmt.Sprintf("nats-route://localhost:%d", CLUSTER_PORT))
routeURL, _ := url.Parse(fmt.Sprintf("nats-route://127.0.0.1:%d", CLUSTER_PORT))
opts.Routes = []*url.URL{routeURL}
sc := RunServer(&opts)