Skip to content

Commit 9d6f73d

Browse files
Fix tests (#28)
* Fix tests * Update the project changelog Co-authored-by: Denis Tokarev <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent ac4486b commit 9d6f73d

File tree

4 files changed

+55
-19
lines changed

4 files changed

+55
-19
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
tags:
66
- '*'
7+
schedule:
8+
- cron: 0 11 * * *
79

810
jobs:
911
lint:

CHANGELOG.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
## v2.0.10
22
* (668b957) Create codeql-analysis.yml (#25) (Denis Tokarev)
33
* (8b06c25) Update CI to publish only when integration tests has passed (#26) (github-actions[bot])
4-
* (5db0cad) Bump version to 2.0.10 (Denis Tokarev)
4+
* (af4e364) Bump version to 2.0.10 (Denis Tokarev)
5+
* (ac4486b) Update the project changelog (github-actions[bot])
6+
* (27ef151) Fix tests (Denis Tokarev)
57

68
## v2.0.9
79
* (a999686) Upgrade all deps and prepare v2.0.9 (Denis Tokarev)
@@ -42,7 +44,37 @@
4244
* (38ebf94) Further get rid of global variables (#11) (Denis Tokarev)
4345

4446
## v2.0.2
47+
48+
## v2.0.10
4549
* (8aa1f79) Fix issue w/wrong setTimeout call (#10) (github-actions[bot])
50+
* (a1cc16f) Further get rid of global variables (Denis Tokarev)
51+
* (38ebf94) Further get rid of global variables (#11) (Denis Tokarev)
52+
* (16cbe84) Update README -> 2.0.4 (#12) (github-actions[bot])
53+
* (0ae085e) Disable secret scan (#13) (github-actions[bot])
54+
* (bfea826) Fix #14 (Denis Tokarev)
55+
* (f6397ea) Increase allowed complexity (Denis Tokarev)
56+
* (2ef43fa) Fix #16: add 'module' to package.json, manually fix dependabot alerts (#17) (github-actions[bot])
57+
* (43d46df) Update README (#18) (github-actions[bot])
58+
* (dbf7cdf) Aaa (Denis Tokarev)
59+
* (2a51437) Fix timeout default value in README (#20) (Simon Smith)
60+
* (7c72d54) Upgrade automerge action (Denis Tokarev)
61+
* (5b1fa8f) Fix workflows (Denis Tokarev)
62+
* (ef0219c) GH_PAT -> GITHUB_TOKEN (Denis Tokarev)
63+
* (7e7178d) Adjust spelling in readme and index (#21) (Lukasz Kokot)
64+
* (a999686) Upgrade all deps and prepare v2.0.9 (Denis Tokarev)
65+
* (7763e70) Update scripts (Denis Tokarev)
66+
* (d151065) Fix (Denis Tokarev)
67+
* (87d3f35) Update codeclimate config (Denis Tokarev)
68+
* (208bd20) Update codeclimate config (Denis Tokarev)
69+
* (71f8658) Update the CI configuration to properly set PR bodies (Denis Tokarev)
70+
* (154f35e) Set test timeout to 10s (Denis Tokarev)
71+
* (d47ce0c) Update auto-labeling (Denis Tokarev)
72+
* (8641a51) Add re-labeling (Denis Tokarev)
73+
* (4d3d2cc) Auto-release and auto-publish daily when possible (#24) (github-actions[bot])
74+
* (668b957) Create codeql-analysis.yml (#25) (Denis Tokarev)
75+
* (8b06c25) Update CI to publish only when integration tests has passed (#26) (github-actions[bot])
76+
* (af4e364) Bump version to 2.0.10 (Denis Tokarev)
77+
* (ac4486b) Update the project changelog (github-actions[bot])
4678

4779
## v2.0.1
4880
* (b03c05c) Set theme jekyll-theme-slate (Denis Tokarev)

package-lock.json

Lines changed: 19 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils/create_tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export const createTests = ({
183183
const initialTime = Date.now();
184184
const predicate = jest.fn(() => (Date.now() - initialTime > 1000 ? { a: 10, b: 20 } : false));
185185
expect(predicate).not.toHaveBeenCalled();
186-
const result = await waitUntil(predicate, 1500, 500);
186+
const result = await waitUntil(predicate, 2000, 500);
187187

188188
expect(predicate.mock.calls.length < Math.floor(1500 / DEFAULT_INTERVAL_BETWEEN_ATTEMPTS_IN_MS) - 1).toBe(true);
189189
expect(result).toEqual({ a: 10, b: 20 });

0 commit comments

Comments
 (0)