From 331874229e56d899a1881c06e31d5abda4cf7f24 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Thu, 21 Jul 2022 11:28:08 +0200 Subject: [PATCH] DEV: Fix pretender leaking request handlers (#17584) --- .../javascripts/discourse/tests/helpers/create-pretender.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/discourse/tests/helpers/create-pretender.js b/app/assets/javascripts/discourse/tests/helpers/create-pretender.js index 5f064c12a02..4d450ceb1d5 100644 --- a/app/assets/javascripts/discourse/tests/helpers/create-pretender.js +++ b/app/assets/javascripts/discourse/tests/helpers/create-pretender.js @@ -1143,4 +1143,5 @@ export function resetPretender() { instance.handledRequests = []; instance.unhandledRequests = []; instance.passthroughRequests = []; + instance.hosts.registries = {}; }