Skip to content
This repository was archived by the owner on May 15, 2021. It is now read-only.

Commit 8a43e73

Browse files
chore: tweaks
1 parent 49e9d59 commit 8a43e73

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

__tests__/process.test.ts

+10-10
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ describe('execute', () => {
9595

9696
it('should cancel jobs', async() => {
9797
// workflow-run.list
98-
// 30433642 run_number=562, updated_at=2020-02-22T19:33:08Z (re-run) => expected to be canceled
99-
// 30433643 run_number=563, updated_at=2020-01-23T19:33:08Z (merge commit) => expected to be canceled
100-
// 30433644 run_number=564, updated_at=2020-01-24T19:33:08Z (target run) => expected to be canceled
101-
// 30433645 run_number=565, updated_at=2020-01-25T19:33:08Z => expected not to be canceled
102-
// 30433646~30433649 (different event) => expected not to be canceled
98+
// 30433642 run_number=562, updated_at=2020-02-22T19:33:08Z (re-run) => expected that this will be cancelled
99+
// 30433643 run_number=563, updated_at=2020-01-23T19:33:08Z (merge commit) => expected that this will be cancelled
100+
// 30433644 run_number=564, updated_at=2020-01-24T19:33:08Z (target run) => expected that this will be cancelled
101+
// 30433645 run_number=565, updated_at=2020-01-25T19:33:08Z => expected that this will not be cancelled
102+
// 30433646~30433649 (different event) => expected that this will not be cancelled
103103

104104
const mockStdout = spyOnStdout();
105105
nock('https://api.github.com')
@@ -199,11 +199,11 @@ describe('execute', () => {
199199

200200
it('should cancel jobs (consider re-run, set interval)', async() => {
201201
// workflow-run.list
202-
// 30433642 run_number=562, updated_at=2020-02-22T19:33:08Z (re-run) => expected not to be canceled
203-
// 30433643 run_number=563, updated_at=2020-01-23T19:33:08Z (merge commit) => expected not to be canceled
204-
// 30433644 run_number=564, updated_at=2020-01-24T19:33:08Z (target run) => expected to be canceled
205-
// 30433645 run_number=565, updated_at=2020-01-25T19:33:08Z => expected not to be canceled
206-
// 30433646~30433649 (different event) => expected not to be canceled
202+
// 30433642 run_number=562, updated_at=2020-02-22T19:33:08Z (re-run) => expected that this will not be cancelled
203+
// 30433643 run_number=563, updated_at=2020-01-23T19:33:08Z (merge commit) => expected that this will not be cancelled
204+
// 30433644 run_number=564, updated_at=2020-01-24T19:33:08Z (target run) => expected that this will be cancelled
205+
// 30433645 run_number=565, updated_at=2020-01-25T19:33:08Z => expected that this will not be cancelled
206+
// 30433646~30433649 (different event) => expected that this will not be cancelled
207207

208208
process.env.INPUT_EXCLUDE_MERGED = 'true';
209209
process.env.INPUT_CONSIDER_RE_RUN = 'true';

0 commit comments

Comments
 (0)