Skip to content

Commit 3020953

Browse files
Merge pull request #29330 from xueqzhan/revert-29309-malformed-config
TRT-1898: Revert "NO-JIRA: address malformed CMO configmap post-test"
2 parents 90bc491 + e40dada commit 3020953

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

test/extended/prometheus/collection_profiles.go

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ type runner struct {
5858
var _ = g.Describe("[sig-instrumentation][OCPFeatureGate:MetricsCollectionProfiles] The collection profiles feature-set", g.Ordered, func() {
5959
defer g.GinkgoRecover()
6060

61-
o.SetDefaultEventuallyTimeout(20 * time.Minute)
61+
o.SetDefaultEventuallyTimeout(15 * time.Minute)
6262
o.SetDefaultEventuallyPollingInterval(5 * time.Second)
6363

6464
r := &runner{}
@@ -84,11 +84,11 @@ var _ = g.Describe("[sig-instrumentation][OCPFeatureGate:MetricsCollectionProfil
8484
if err != nil {
8585
if errors.IsNotFound(err) {
8686
g.By("initially, creating a configuration for the operator as it did not exist")
87-
operatorConfiguration = nil
88-
return r.makeCollectionProfileConfigurationFor(tctx, collectionProfileDefault)
87+
err = r.makeCollectionProfileConfigurationFor(tctx, collectionProfileDefault)
88+
}
89+
if err != nil {
90+
return err
8991
}
90-
91-
return err
9292
}
9393

9494
return nil
@@ -108,14 +108,6 @@ var _ = g.Describe("[sig-instrumentation][OCPFeatureGate:MetricsCollectionProfil
108108
err = r.kclient.CoreV1().ConfigMaps(operatorNamespaceName).Delete(tctx, operatorConfigurationName, metav1.DeleteOptions{})
109109
}
110110
o.Expect(err).To(o.BeNil())
111-
112-
o.Eventually(func() error {
113-
_, err := r.kclient.CoreV1().ConfigMaps(operatorNamespaceName).Get(tctx, operatorConfigurationName, metav1.GetOptions{})
114-
if errors.IsNotFound(err) {
115-
return nil
116-
}
117-
return fmt.Errorf("ConfigMap %q still exists after deletion attempt", operatorConfigurationName)
118-
}).Should(o.BeNil())
119111
})
120112

121113
g.Context("initially, in a homogeneous default environment,", func() {

0 commit comments

Comments
 (0)