Skip to content

Commit a047c75

Browse files
committed
wait longer time for checking job status
1 parent c828f0c commit a047c75

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

integ/job_cancellation_test.go

+9-3
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,17 @@ func (s *IntegSuite) TestCancelledJobWithoutSavepoint(c *C) {
163163
c.Assert(err, IsNil)
164164

165165
// wait a bit
166-
time.Sleep(1 * time.Second)
167166

168-
job = s.Util.GetJobOverview(currApp)
169-
c.Assert(job["status"], Equals, "CANCELED")
167+
counter := 0
168+
for counter < 120 {
169+
time.Sleep(1 * time.Second)
170+
171+
job = s.Util.GetJobOverview(currApp)
172+
log.Infof("job status: %s", job["status"])
173+
counter++
174+
}
170175

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

0 commit comments

Comments
 (0)