Skip to content

Commit

Permalink
lazy commit and want to test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-delph committed Mar 17, 2024
1 parent 08f4199 commit 2e26b6a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/e2e/dead_start_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func IsRevisionRestarting(clients *test.Clients) func(r *v1.Revision) (bool, err
if err != nil {
return false, err
}
// gotPods := len(podList.Items)

// verify the pods are restarting.
for i := range podList.Items {
conds := podList.Items[i].Status.ContainerStatuses
Expand Down Expand Up @@ -140,14 +140,16 @@ func TestDeadStartToHealthy(t *testing.T) {
if _, err := v1test.CreateRoute(t, clients, names); err != nil {
t.Fatal("Failed to create Route:", err)
}
cfg, err := v1test.CreateConfiguration(t, clients, names, withMinScale(minScale),
rtesting.WithConfigAnn(serving.ProgressDeadlineAnnotationKey, "120s"),
cfg, err := v1test.CreateConfiguration(t, clients, names,
withMinScale(minScale),
// rtesting.WithConfigTEST(serving.ProgressDeadlineAnnotationKey, "1s"),
rtesting.WithConfigRevisionTimeoutSeconds(1),
)
if err != nil {
t.Fatal("Failed to create Configuration:", err)
}

// time.Sleep(time.Hour)
failedRevName := latestRevisionName(t, clients, names.Config, "")

t.Log("Waiting for revision to restart")
Expand Down

0 comments on commit 2e26b6a

Please sign in to comment.