Skip to content

Commit ceab1e8

Browse files
authored
[WASP] Call teardown on test end (#2084)
* Call teardown on .Done() * Add changeset * Update changeset
1 parent 3ad40f1 commit ceab1e8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

framework/.changeset/v0.10.18.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Call teardown when a WASP virtual user test is finished to ensure cleanup

wasp/wasp.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ func (g *Generator) runVU(vu VirtualUser) {
443443
}()
444444
select {
445445
case <-g.ResponsesCtx.Done():
446+
g.runTeardownWithTimeout(vu)
446447
cancel()
447448
return
448449
case <-vu.StopChan():

0 commit comments

Comments
 (0)