mirror of
https://github.com/minio/minio.git
synced 2025-11-09 21:49:46 -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:
@@ -35,6 +35,7 @@ func newPosixTestSetup() (StorageAPI, string, error) {
|
||||
if err != nil {
|
||||
return nil, "", err
|
||||
}
|
||||
// Initialize a new posix layer.
|
||||
posixStorage, err := newPosix(diskPath)
|
||||
if err != nil {
|
||||
return nil, "", err
|
||||
@@ -179,8 +180,8 @@ func TestNewPosix(t *testing.T) {
|
||||
|
||||
// List of all tests for posix initialization.
|
||||
testCases := []struct {
|
||||
diskPath string
|
||||
err error
|
||||
name string
|
||||
err error
|
||||
}{
|
||||
// Validates input argument cannot be empty.
|
||||
{
|
||||
@@ -203,7 +204,8 @@ func TestNewPosix(t *testing.T) {
|
||||
|
||||
// Validate all test cases.
|
||||
for i, testCase := range testCases {
|
||||
_, err := newPosix(testCase.diskPath)
|
||||
// Initialize a new posix layer.
|
||||
_, err := newPosix(testCase.name)
|
||||
if err != testCase.err {
|
||||
t.Fatalf("Test %d failed wanted: %s, got: %s", i+1, err, testCase.err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user