Load Testing · Junior · Question 73 of 75

What does teardown() in k6 do?

Show the answer

Correct answer: Runs once after all VUs finish, e.g. to clean up test data

Explanation

teardown() receives the data from setup(). It is the place to delete users or orders the test created.

Further reading

Problem with a question

Load Testing · Junior · question 73

Test yourself

Take the Load Testing · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz