mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
Fix goroutine test fatalf (#6682)
Use t.Error/t.ErrorF instead if t.Fatal/t.Fatalf Add returns to achieve same behaviour as earlier
This commit is contained in:
committed by
kannappanr
parent
7b7be66fa1
commit
9631d65552
@@ -218,7 +218,8 @@ func TestNamespaceForceUnlockTest(t *testing.T) {
|
||||
// Try to claim lock again.
|
||||
anotherLock := globalNSMutex.NewNSLock("bucket", "object")
|
||||
if anotherLock.GetLock(newDynamicTimeout(60*time.Second, time.Second)) != nil {
|
||||
t.Fatalf("Failed to get lock")
|
||||
t.Errorf("Failed to get lock")
|
||||
return
|
||||
}
|
||||
// And signal success.
|
||||
ch <- struct{}{}
|
||||
|
||||
Reference in New Issue
Block a user