Skip to content

Commit

Permalink
wait longer time for checking job status
Browse files Browse the repository at this point in the history
  • Loading branch information
leoluoInSea committed Feb 15, 2023
1 parent c828f0c commit a047c75
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions integ/job_cancellation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,17 @@ func (s *IntegSuite) TestCancelledJobWithoutSavepoint(c *C) {
c.Assert(err, IsNil)

// wait a bit
time.Sleep(1 * time.Second)

job = s.Util.GetJobOverview(currApp)
c.Assert(job["status"], Equals, "CANCELED")
counter := 0
for counter < 120 {
time.Sleep(1 * time.Second)

job = s.Util.GetJobOverview(currApp)
log.Infof("job status: %s", job["status"])
counter++
}

c.Assert(job["status"], Equals, "CANCELED")
newApp, err := s.Util.Update(config.Name, func(app *v1beta1.FlinkApplication) {
app.Spec.Image = NewImage
})
Expand Down

0 comments on commit a047c75

Please sign in to comment.