tests: Avoid running TestNSRace in short test mode (#10735)

master
Anis Elleuch 4 years ago committed by GitHub
parent 734f258878
commit 2c32c2149e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      cmd/namespace-lock_test.go

@ -41,6 +41,10 @@ func TestGetSource(t *testing.T) {
// Test lock race // Test lock race
func TestNSLockRace(t *testing.T) { func TestNSLockRace(t *testing.T) {
if testing.Short() {
t.Skip("skipping test in short mode.")
}
ctx := context.Background() ctx := context.Background()
for i := 0; i < 10000; i++ { for i := 0; i < 10000; i++ {

Loading…
Cancel
Save