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:
Harshavardhana
2016-07-07 19:50:44 -07:00
committed by GitHub
parent 5ec7734d88
commit 4c21d6d09d
3 changed files with 6 additions and 63 deletions
-3
View File
@@ -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)