Skip to content

Commit fe8dacc

Browse files
committed
add additional assertions to debug flaky test case
1 parent 60c83a8 commit fe8dacc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/e2e/appwrapper_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,9 @@ var _ = Describe("AppWrapper E2E Test", func() {
227227
aw3 := createAppWrapper(ctx, deployment(2, 250))
228228
appwrappers = append(appwrappers, aw3)
229229
Eventually(AppWrapperPhase(ctx, aw3), 30*time.Second).Should(Equal(workloadv1beta2.AppWrapperSuspended))
230-
Consistently(AppWrapperPhase(ctx, aw3), 20*time.Second).Should(Equal(workloadv1beta2.AppWrapperSuspended))
230+
Consistently(AppWrapperPhase(ctx, aw), 5*time.Second).Should(Equal(workloadv1beta2.AppWrapperRunning))
231+
Consistently(AppWrapperPhase(ctx, aw2), 5*time.Second).Should(Equal(workloadv1beta2.AppWrapperRunning))
232+
Consistently(AppWrapperPhase(ctx, aw3), 5*time.Second).Should(Equal(workloadv1beta2.AppWrapperSuspended))
231233

232234
By("Queued job is admitted when quota becomes available")
233235
Expect(deleteAppWrapper(ctx, aw.Name, aw.Namespace)).Should(Succeed())

0 commit comments

Comments
 (0)