-
Notifications
You must be signed in to change notification settings - Fork 436
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Node.js Worker Version to 3.8.1 (#9473)
[Release Notes](https://github.com/Azure/azure-functions-nodejs-worker/releases/tag/v3.8.1) And fix flaky Node.js tests
- Loading branch information
Showing
6 changed files
with
35 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
test/WebJobs.Script.Tests.Integration/TestScripts/Node/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const func = require('@azure/functions-core'); | ||
|
||
func.registerHook('postInvocation', async () => { | ||
// Add slight delay to ensure logs show up before the invocation finishes | ||
// See these issues for more info: | ||
// https://github.com/Azure/azure-functions-host/issues/9238 | ||
// https://github.com/Azure/azure-functions-host/issues/8222 | ||
await new Promise((resolve) => setTimeout(resolve, 100)); | ||
}); |
12 changes: 12 additions & 0 deletions
12
test/WebJobs.Script.Tests.Integration/TestScripts/Node/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"name": "nodeapp", | ||
"version": "1.0.0", | ||
"description": "", | ||
"scripts": { | ||
"start": "func start", | ||
"test": "echo \"No tests yet...\"" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": {}, | ||
"main": "index.js" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters