Skip to content

Commit

Permalink
Why is the sleep function triggered?
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasZepper committed Oct 5, 2023
1 parent 27d698f commit c2493ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
with:
actionToTake: 'sweep'
lowerBound: 50
debug: true

- name: Print Output (sweep)
id: output-sweep
Expand All @@ -67,6 +68,7 @@ jobs:
with:
actionToTake: 'sleep'
lowerBound: 1500
debug: true

- name: Print Output (sleep)
id: output-sleep
Expand Down
1 change: 1 addition & 0 deletions src/sleep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
export async function sleep(milliseconds: number): Promise<string> {
return new Promise(resolve => {
if (isNaN(milliseconds)) {
console.warn(milliseconds)
throw new Error('milliseconds not a number')
}

Expand Down

0 comments on commit c2493ff

Please sign in to comment.