diff --git a/server/service/integration_enterprise_test.go b/server/service/integration_enterprise_test.go index bb52057034a5..6ac162e1cfba 100644 --- a/server/service/integration_enterprise_test.go +++ b/server/service/integration_enterprise_test.go @@ -1836,6 +1836,10 @@ func (s *integrationEnterpriseTestSuite) TestListDevicePolicies() { err = s.ds.SaveAppConfig(context.Background(), ac) require.NoError(t, err) + ac, err = s.ds.AppConfig(context.Background()) + require.NoError(t, err) + fmt.Printf("------------- ac %+v\n", ac) + team, err := s.ds.NewTeam(context.Background(), &fleet.Team{ ID: 51, Name: "team1-policies", @@ -1931,6 +1935,7 @@ func (s *integrationEnterpriseTestSuite) TestListDevicePolicies() { require.NoError(t, getDeviceHostResp.Err) require.Equal(t, host.ID, getDeviceHostResp.Host.ID) require.False(t, getDeviceHostResp.Host.RefetchRequested) + fmt.Printf("---------------- getdevicehostresp: %+v\n", getDeviceHostResp) require.Equal(t, "http://example.com/logo", getDeviceHostResp.OrgLogoURL) require.Len(t, *getDeviceHostResp.Host.Policies, 2) diff --git a/server/service/integration_mdm_test.go b/server/service/integration_mdm_test.go index 99dd0c02917c..7d39995da75c 100644 --- a/server/service/integration_mdm_test.go +++ b/server/service/integration_mdm_test.go @@ -2185,8 +2185,7 @@ func (s *integrationMDMTestSuite) TestMDMAppleUnenroll() { }}, http.StatusNoContent) // trigger a sync and verify that there are profiles assigned to the host - _, err = s.profileSchedule.Trigger() - require.NoError(t, err) + s.awaitTriggerProfileSchedule(t, 0) var hostResp getHostResponse s.DoJSON("GET", fmt.Sprintf("/api/v1/fleet/hosts/%d", h.ID), getHostRequest{}, http.StatusOK, &hostResp)