4
0
Эх сурвалжийг харах

bind to unprivileged ports for unit tests

Mike 1 жил өмнө
parent
commit
836a206296

+ 3 - 3
server/oscar/server_test.go

@@ -28,15 +28,15 @@ func TestServer_ListenAndServeAndShutdown(t *testing.T) {
 
 
 	cfg := []config.Listener{
 	cfg := []config.Listener{
 		{
 		{
-			BOSListenAddress:  ":1000",
+			BOSListenAddress:  ":15000",
 			BOSAdvertisedHost: "localhost",
 			BOSAdvertisedHost: "localhost",
 		},
 		},
 		{
 		{
-			BOSListenAddress:  ":2000",
+			BOSListenAddress:  ":15001",
 			BOSAdvertisedHost: "localhost",
 			BOSAdvertisedHost: "localhost",
 		},
 		},
 		{
 		{
-			BOSListenAddress:  ":3000",
+			BOSListenAddress:  ":15002",
 			BOSAdvertisedHost: "localhost",
 			BOSAdvertisedHost: "localhost",
 		},
 		},
 	}
 	}