Skip to content

Commit 6b9a6f6

Browse files
committed
Fix flaky subscription e2e test case
1. TestSubscriptionUpdatesExistingInstallPlan Signed-off-by: Vu Dinh <[email protected]>
1 parent 92dbad6 commit 6b9a6f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/e2e/subscription_e2e_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -921,6 +921,8 @@ func TestSubscriptionUpdatesExistingInstallPlan(t *testing.T) {
921921
// Delete this subscription
922922
err = crc.OperatorsV1alpha1().Subscriptions(testNamespace).DeleteCollection(metav1.NewDeleteOptions(0), metav1.ListOptions{})
923923
require.NoError(t, err)
924+
// Delete orphaned csvB
925+
require.NoError(t, crc.OperatorsV1alpha1().ClusterServiceVersions(testNamespace).Delete(csvB.GetName(), &metav1.DeleteOptions{}))
924926

925927
// Create an InstallPlan for csvB
926928
ip := &v1alpha1.InstallPlan{

0 commit comments

Comments
 (0)