Diagnose: Skip test-access-storage on raft storage (#11889)

This commit is contained in:
Brian Kassouf
2021-06-17 12:15:19 -07:00
committed by GitHub
parent 61190bb48a
commit d62b4e7581

View File

@@ -303,7 +303,7 @@ func (c *OperatorDiagnoseCommand) offlineDiagnostics(ctx context.Context) error
} }
// Attempt to use storage backend // Attempt to use storage backend
if !c.skipEndEnd { if !c.skipEndEnd && config.Storage.Type != storageTypeRaft {
diagnose.Test(ctx, "test-access-storage", diagnose.WithTimeout(30*time.Second, func(ctx context.Context) error { diagnose.Test(ctx, "test-access-storage", diagnose.WithTimeout(30*time.Second, func(ctx context.Context) error {
maxDurationCrudOperation := "write" maxDurationCrudOperation := "write"
maxDuration := time.Duration(0) maxDuration := time.Duration(0)