Skip to content

Commit e6ab6e3

Browse files
committed
Add small delay in test to ensure tests pass with staging server
1 parent f433729 commit e6ab6e3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ test('Auto Encrypt', async t => {
119119
// further.
120120
//
121121

122+
// Wait a breath to ensure that the request has a chance to start.
123+
await new Promise((resolve, reject) => {
124+
setTimeout(resolve, 500)
125+
})
126+
122127
// Test server is busy response while attempting to provision the initial certificate.
123128
try {
124129
await httpsGetString(urlToHit)

0 commit comments

Comments
 (0)