From 45750dbfc6a38c451776e1a2a957e1ad0ff03f3e Mon Sep 17 00:00:00 2001 From: Nick Misasi Date: Thu, 22 Feb 2024 11:50:57 -0500 Subject: [PATCH] Fix flaky IP Filtering test (#26283) --- server/channels/api4/ip_filtering_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/server/channels/api4/ip_filtering_test.go b/server/channels/api4/ip_filtering_test.go index 813b17e2fa..67989baaf7 100644 --- a/server/channels/api4/ip_filtering_test.go +++ b/server/channels/api4/ip_filtering_test.go @@ -233,10 +233,6 @@ func Test_applyIPFilters(t *testing.T) { CloudCustomerInfo: model.CloudCustomerInfo{Email: "test@localhost"}, }, nil) - cloudImpl := th.App.Srv().Cloud - defer func() { - th.App.Srv().Cloud = cloudImpl - }() th.App.Srv().Cloud = cloud th.Client.Login(context.Background(), th.SystemAdminUser.Email, th.SystemAdminUser.Password)