From 8ddca5998cd158670b114cef69a7f30aa01b31b8 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Fri, 15 Jul 2022 14:51:15 +0800 Subject: [PATCH] DEV: Fix state leak in QUnit acceptance tests (#17507) Follow-up to 0525455ef69f4482b0f7b1610c5ccade40f88dd7 --- .../discourse/tests/acceptance/topic-list-tracker-test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/tests/acceptance/topic-list-tracker-test.js b/app/assets/javascripts/discourse/tests/acceptance/topic-list-tracker-test.js index 5f4de952209..296a021ee4e 100644 --- a/app/assets/javascripts/discourse/tests/acceptance/topic-list-tracker-test.js +++ b/app/assets/javascripts/discourse/tests/acceptance/topic-list-tracker-test.js @@ -36,9 +36,9 @@ acceptance("Topic list tracking", function (needs) { }); server.get("/t/11557.json", () => { - const topicFixture = topicFixtures["/t/130.json"]; + const topicFixture = cloneJSON(topicFixtures["/t/130.json"]); topicFixture.id = 11557; - return helper.response(cloneJSON(topicFixture)); + return helper.response(topicFixture); }); });