remove ids generated during the tests
问题 For load testing in the vu stage I generate a lot of objects with unique ids that I put them in the database. I want to delete them during teardown stage in order not to pollute the database. When keeping the state like this let ids = []; export function setup() { ids.push('put in setup id'); } export default function () { ids.push('put in vu id'); } export function teardown() { ids.push('put in teardown id'); console.log('Resources: ' + ids); } it doesn't work as the array always contains