Skip to content

Commit

Permalink
Merge branch 'master' of github.com:shindig/insomnia-plugin-load-test…
Browse files Browse the repository at this point in the history
…-timing
  • Loading branch information
shindig committed Oct 20, 2023
2 parents 6323d42 + e166c77 commit 9e00008
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions load-test-timing.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ const endHtml = `
</body>
</html>`;

const action = async (context, data) => {
const { requests } = data;
const action = async (context, requests) => {
const progressModal = document.createElement('div');
let abortRequests = false;
let numIterations, delayBetweenRequests, runInParallel;
Expand Down Expand Up @@ -211,16 +210,32 @@ const action = async (context, data) => {
}
};

module.exports.requestActions = [
{
label: "Load Test",
action: async (context, data) => {
const { request } = data;
action(context, [request]);
},
},
]

module.exports.requestGroupActions = [
{
label: "Load Test",
action,
action: async (context, data) => {
const { requests } = data;
action(context, requests);
},
},
];

module.exports.workspaceActions = [
{
label: "Load Test",
action,
action: async (context, data) => {
const { requests } = data;
action(context, requests);
},
},
];

0 comments on commit 9e00008

Please sign in to comment.