Skip to content

Commit

Permalink
git-node: Clarify that the wait time is a *minimum* not a maximum.
Browse files Browse the repository at this point in the history
  • Loading branch information
srl295 committed Oct 5, 2018
1 parent 38fbb3e commit 16b5776
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/pr_checker.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class PRChecker {
const dateStr = new Date(pr.createdAt).toDateString();
const type = wait.isWeekend ? 'weekend' : 'weekday';
cli.info(`This PR was created on ${dateStr} (${type} in UTC)`);
cli.warn(`${wait.timeLeft} hours left to land`);
cli.warn(`Wait at least ${wait.timeLeft} more hours before landing`);
return false;
}

Expand Down
4 changes: 2 additions & 2 deletions test/unit/pr_checker.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ describe('PRChecker', () => {
const cli = new TestCLI();

const expectedLogs = {
warn: [['49 hours left to land']],
warn: [['Wait at least 49 more hours before landing']],
info: [['This PR was created on Sat Oct 28 2017 (weekend in UTC)']]
};

Expand Down Expand Up @@ -201,7 +201,7 @@ describe('PRChecker', () => {
const cli = new TestCLI();

const expectedLogs = {
warn: [['22 hours left to land']],
warn: [['Wait at least 22 more hours before landing']],
info: [['This PR was created on Tue Oct 31 2017 (weekday in UTC)']]
};

Expand Down

0 comments on commit 16b5776

Please sign in to comment.