mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-10-08 09:21:15 +02:00
test: Add JS CodeNode benchmark scenario (#10632)
This commit is contained in:
1 parent
7cfe56d727
commit
56354151d4
3 files changed
+116
No files matched your search
+12
@@ -0,0 +1,12 @@
|
||||
import http from 'k6/http';
|
||||
import { check } from 'k6';
|
||||
|
||||
const apiBaseUrl = __ENV.API_BASE_URL;
|
||||
|
||||
export default function () {
|
||||
const res = http.post(`${apiBaseUrl}/webhook/code-node-benchmark`, {});
|
||||
check(res, {
|
||||
'is status 200': (r) => r.status === 200,
|
||||
'has items in response': (r) => JSON.parse(r.body).length === 5,
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user