mirror of
https://github.com/discourse/discourse.git
synced 2025-04-02 12:12:20 +08:00
DEV: prevents Pretender Object to leak between tests (#7726)
This commit is contained in:
parent
d1228f47bb
commit
fce34aa799
@ -155,6 +155,8 @@ QUnit.testDone(function() {
|
|||||||
|
|
||||||
server.shutdown();
|
server.shutdown();
|
||||||
|
|
||||||
|
window.server = null;
|
||||||
|
|
||||||
// ensures any event not removed is not leaking between tests
|
// ensures any event not removed is not leaking between tests
|
||||||
// most likely in intialisers, other places (controller, component...)
|
// most likely in intialisers, other places (controller, component...)
|
||||||
// should be fixed in code
|
// should be fixed in code
|
||||||
|
Loading…
x
Reference in New Issue
Block a user