mirror of
https://github.com/pgsty/minio.git
synced 2026-07-22 21:50:22 +03:00
tests: Remove racey failedDisks behavior in RenameObject tests. (#2138)
Additionally also initialize namespace lock only once per test run, there is no reason to initialize it multiple times to avoid races. Fixes #2137
This commit is contained in:
@@ -20,9 +20,6 @@ import "testing"
|
||||
|
||||
// Tests functionality provided by namespace lock.
|
||||
func TestNamespaceLockTest(t *testing.T) {
|
||||
// Initialize name space lock.
|
||||
initNSLock()
|
||||
|
||||
// List of test cases.
|
||||
testCases := []struct {
|
||||
lk func(s1, s2 string)
|
||||
|
||||
Reference in New Issue
Block a user