Fix flaky IP Filtering test (#26283)

This commit is contained in:
Nick Misasi 2024-02-22 11:50:57 -05:00 committed by GitHub
parent 64504b80e6
commit 45750dbfc6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -233,10 +233,6 @@ func Test_applyIPFilters(t *testing.T) {
CloudCustomerInfo: model.CloudCustomerInfo{Email: "test@localhost"}, CloudCustomerInfo: model.CloudCustomerInfo{Email: "test@localhost"},
}, nil) }, nil)
cloudImpl := th.App.Srv().Cloud
defer func() {
th.App.Srv().Cloud = cloudImpl
}()
th.App.Srv().Cloud = cloud th.App.Srv().Cloud = cloud
th.Client.Login(context.Background(), th.SystemAdminUser.Email, th.SystemAdminUser.Password) th.Client.Login(context.Background(), th.SystemAdminUser.Email, th.SystemAdminUser.Password)