From 6e9e491c794cdf1389d3519afd2ed596afba1c05 Mon Sep 17 00:00:00 2001 From: Colin Sullivan Date: Mon, 9 Jan 2017 10:07:24 -0700 Subject: [PATCH] Updates for running in a windows container environment. * Fixes unit tests running in windows containers with the default configuration. --- logger/syslog_windows_test.go | 2 +- server/monitor_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/logger/syslog_windows_test.go b/logger/syslog_windows_test.go index cd023d0e..c14c7b56 100755 --- a/logger/syslog_windows_test.go +++ b/logger/syslog_windows_test.go @@ -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) } diff --git a/server/monitor_test.go b/server/monitor_test.go index b3683667..7d87c835 100644 --- a/server/monitor_test.go +++ b/server/monitor_test.go @@ -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)