mirror of
https://github.com/minio/minio.git
synced 2025-11-21 02:09:08 -05:00
Move to URL based syntax formatting. (#3092)
For command line arguments we are currently following - <node-1>:/path ... <node-n>:/path This patch changes this to - http://<node-1>/path ... http://<node-n>/path
This commit is contained in:
@@ -31,7 +31,6 @@ import (
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"os"
|
||||
"strconv"
|
||||
"sync"
|
||||
"testing"
|
||||
"time"
|
||||
@@ -153,7 +152,7 @@ func TestServerCloseBlocking(t *testing.T) {
|
||||
|
||||
func TestListenAndServePlain(t *testing.T) {
|
||||
wait := make(chan struct{})
|
||||
addr := "127.0.0.1:" + strconv.Itoa(getFreePort())
|
||||
addr := net.JoinHostPort("127.0.0.1", getFreePort())
|
||||
errc := make(chan error)
|
||||
once := &sync.Once{}
|
||||
|
||||
@@ -203,7 +202,7 @@ func TestListenAndServePlain(t *testing.T) {
|
||||
|
||||
func TestListenAndServeTLS(t *testing.T) {
|
||||
wait := make(chan struct{})
|
||||
addr := "127.0.0.1:" + strconv.Itoa(getFreePort())
|
||||
addr := net.JoinHostPort("127.0.0.1", getFreePort())
|
||||
errc := make(chan error)
|
||||
once := &sync.Once{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user