Skip to content

Commit

Permalink
test: adapt for retries
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Jun 1, 2019
1 parent 08a037f commit dff8ed3
Showing 1 changed file with 36 additions and 4 deletions.
40 changes: 36 additions & 4 deletions test/integration/installation-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,11 @@ test('installation', async function (t) {
text: 'By default, WIP only checks the pull request title for the terms "WIP", "Work in progress" and "🚧".\n\nYou can configure both the terms and the location that the WIP app will look for by signing up for the pro plan: https://github.com/marketplace/wip. All revenue will be donated to [Rails Girls Summer of Code](https://railsgirlssummerofcode.org/).'
},
conclusion: 'success',
completed_at: '1970-01-01T00:00:00.000Z'
completed_at: '1970-01-01T00:00:00.000Z',
request: {
retries: 3,
retryAfter: 3
}
})

t.deepEqual(two.arg, {
Expand All @@ -143,6 +147,10 @@ test('installation', async function (t) {
title: 'Title contains "WIP"',
summary: 'The title "[WIP] Test" contains "WIP".',
text: 'By default, WIP only checks the pull request title for the terms "WIP", "Work in progress" and "🚧".\n\nYou can configure both the terms and the location that the WIP app will look for by signing up for the pro plan: https://github.com/marketplace/wip. All revenue will be donated to [Rails Girls Summer of Code](https://railsgirlssummerofcode.org/).'
},
request: {
retries: 3,
retryAfter: 3
}
})

Expand Down Expand Up @@ -257,7 +265,11 @@ test('repositories added', async function (t) {
text: 'By default, WIP only checks the pull request title for the terms "WIP", "Work in progress" and "🚧".\n\nYou can configure both the terms and the location that the WIP app will look for by signing up for the pro plan: https://github.com/marketplace/wip. All revenue will be donated to [Rails Girls Summer of Code](https://railsgirlssummerofcode.org/).'
},
conclusion: 'success',
completed_at: '1970-01-01T00:00:00.000Z'
completed_at: '1970-01-01T00:00:00.000Z',
request: {
retries: 3,
retryAfter: 3
}
})

t.deepEqual(two.arg, {
Expand All @@ -272,6 +284,10 @@ test('repositories added', async function (t) {
title: 'Title contains "WIP"',
summary: 'The title "[WIP] Test" contains "WIP".',
text: 'By default, WIP only checks the pull request title for the terms "WIP", "Work in progress" and "🚧".\n\nYou can configure both the terms and the location that the WIP app will look for by signing up for the pro plan: https://github.com/marketplace/wip. All revenue will be donated to [Rails Girls Summer of Code](https://railsgirlssummerofcode.org/).'
},
request: {
retries: 3,
retryAfter: 3
}
})

Expand All @@ -289,7 +305,11 @@ test('repositories added', async function (t) {
text: 'By default, WIP only checks the pull request title for the terms "WIP", "Work in progress" and "🚧".\n\nYou can configure both the terms and the location that the WIP app will look for by signing up for the pro plan: https://github.com/marketplace/wip. All revenue will be donated to [Rails Girls Summer of Code](https://railsgirlssummerofcode.org/).'
},
conclusion: 'success',
completed_at: '1970-01-01T00:00:00.000Z'
completed_at: '1970-01-01T00:00:00.000Z',
request: {
retries: 3,
retryAfter: 3
}
})

t.deepEqual(four.arg, {
Expand All @@ -304,6 +324,10 @@ test('repositories added', async function (t) {
title: 'Title contains "WIP"',
summary: 'The title "[WIP] Test" contains "WIP".',
text: 'By default, WIP only checks the pull request title for the terms "WIP", "Work in progress" and "🚧".\n\nYou can configure both the terms and the location that the WIP app will look for by signing up for the pro plan: https://github.com/marketplace/wip. All revenue will be donated to [Rails Girls Summer of Code](https://railsgirlssummerofcode.org/).'
},
request: {
retries: 3,
retryAfter: 3
}
})

Expand Down Expand Up @@ -383,7 +407,11 @@ test('permissions accepted', async function (t) {
text: 'By default, WIP only checks the pull request title for the terms "WIP", "Work in progress" and "🚧".\n\nYou can configure both the terms and the location that the WIP app will look for by signing up for the pro plan: https://github.com/marketplace/wip. All revenue will be donated to [Rails Girls Summer of Code](https://railsgirlssummerofcode.org/).'
},
conclusion: 'success',
completed_at: '1970-01-01T00:00:00.000Z'
completed_at: '1970-01-01T00:00:00.000Z',
request: {
retries: 3,
retryAfter: 3
}
})

t.deepEqual(two.arg, {
Expand All @@ -398,6 +426,10 @@ test('permissions accepted', async function (t) {
title: 'Title contains "WIP"',
summary: 'The title "[WIP] Test" contains "WIP".',
text: 'By default, WIP only checks the pull request title for the terms "WIP", "Work in progress" and "🚧".\n\nYou can configure both the terms and the location that the WIP app will look for by signing up for the pro plan: https://github.com/marketplace/wip. All revenue will be donated to [Rails Girls Summer of Code](https://railsgirlssummerofcode.org/).'
},
request: {
retries: 3,
retryAfter: 3
}
})

Expand Down

0 comments on commit dff8ed3

Please sign in to comment.