Skip to content

Commit

Permalink
Job kill test
Browse files Browse the repository at this point in the history
  • Loading branch information
dgruber committed Apr 10, 2023
1 parent 688c9ae commit 03b900c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions job_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,8 @@ var _ = Describe("Job", func() {
})

It("should be possible to kill a job", func() {
job := wf.Run("sleep", "1")
job := wf.Run("/bin/sh", "-c", `for i in {1..10000}; do echo $i && sleep 0.1; done`).Kill()
Ω(job).ShouldNot(BeNil())
job.Kill().Wait()
Ω(job.State().String()).Should(Equal(drmaa2interface.Failed.String()))
})

Expand Down

0 comments on commit 03b900c

Please sign in to comment.