mirror of
https://github.com/pgsty/minio.git
synced 2026-07-21 21:20:23 +03:00
Use const slashSeparator instead of "/" everywhere (#8028)
This commit is contained in:
+3
-3
@@ -69,7 +69,7 @@ func TestIsValidVolname(t *testing.T) {
|
||||
// cases for which test should fail.
|
||||
// passing invalid bucket names.
|
||||
{"", false},
|
||||
{"/", false},
|
||||
{SlashSeparator, false},
|
||||
{"a", false},
|
||||
{"ab", false},
|
||||
{"ab/", true},
|
||||
@@ -319,9 +319,9 @@ func TestPosixReadAll(t *testing.T) {
|
||||
// TestPosixNewPosix all the cases handled in posix storage layer initialization.
|
||||
func TestPosixNewPosix(t *testing.T) {
|
||||
// Temporary dir name.
|
||||
tmpDirName := globalTestTmpDir + "/" + "minio-" + nextSuffix()
|
||||
tmpDirName := globalTestTmpDir + SlashSeparator + "minio-" + nextSuffix()
|
||||
// Temporary file name.
|
||||
tmpFileName := globalTestTmpDir + "/" + "minio-" + nextSuffix()
|
||||
tmpFileName := globalTestTmpDir + SlashSeparator + "minio-" + nextSuffix()
|
||||
f, _ := os.Create(tmpFileName)
|
||||
f.Close()
|
||||
defer os.Remove(tmpFileName)
|
||||
|
||||
Reference in New Issue
Block a user