mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Updates for running in a windows container environment.
* Fixes unit tests running in windows containers with the default configuration.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user