From 71a4c6d59dc0627e4f1bb04b74f5b760150e1da2 Mon Sep 17 00:00:00 2001 From: antoineatrhea Date: Thu, 21 Sep 2023 15:39:23 +0200 Subject: [PATCH] Fix failing unit test --- .../Components/ModelDashboard/ModelDashboardBodyTestFixture.cs | 1 + .../Pages/ModelDashboard/ModelDashboardTestFixture.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/COMETwebapp.Tests/Components/ModelDashboard/ModelDashboardBodyTestFixture.cs b/COMETwebapp.Tests/Components/ModelDashboard/ModelDashboardBodyTestFixture.cs index 3f3ad1fe..5e27b464 100644 --- a/COMETwebapp.Tests/Components/ModelDashboard/ModelDashboardBodyTestFixture.cs +++ b/COMETwebapp.Tests/Components/ModelDashboard/ModelDashboardBodyTestFixture.cs @@ -85,6 +85,7 @@ public void Setup() public void Teardown() { this.context.CleanContext(); + CDPMessageBus.Current.ClearSubscriptions(); } [Test] diff --git a/COMETwebapp.Tests/Pages/ModelDashboard/ModelDashboardTestFixture.cs b/COMETwebapp.Tests/Pages/ModelDashboard/ModelDashboardTestFixture.cs index f39ca375..63b14f68 100644 --- a/COMETwebapp.Tests/Pages/ModelDashboard/ModelDashboardTestFixture.cs +++ b/COMETwebapp.Tests/Pages/ModelDashboard/ModelDashboardTestFixture.cs @@ -130,6 +130,7 @@ public void Setup() public void Teardown() { this.context.CleanContext(); + CDPMessageBus.Current.ClearSubscriptions(); } [Test]