diff --git a/server/channels/api4/license_test.go b/server/channels/api4/license_test.go index 08a9e57305..8769fae1fc 100644 --- a/server/channels/api4/license_test.go +++ b/server/channels/api4/license_test.go @@ -521,6 +521,14 @@ func TestTrueUpReviewStatus(t *testing.T) { th.App.Srv().SetLicense(model.NewTestLicense()) t.Run("returns 200 when status retrieved", func(t *testing.T) { + cloud := mocks.CloudInterface{} + + cloudImpl := th.App.Srv().Cloud + defer func() { + th.App.Srv().Cloud = cloudImpl + }() + th.App.Srv().Cloud = &cloud + resp, err := th.SystemAdminClient.DoAPIGet("/license/review/status", "") require.NoError(t, err) require.Equal(t, http.StatusOK, resp.StatusCode)