mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
fix flaky MDM test (#17307)
this one seems to be specially flaky and is blocking a couple of PRs from being merged.
This commit is contained in:
parent
fc2afeb133
commit
152edb838b
@ -2313,8 +2313,7 @@ func (s *integrationMDMTestSuite) TestDEPProfileAssignment() {
|
||||
// - existing device with "added"
|
||||
// - new device with "added"
|
||||
require.Len(t, profileAssignmentReqs[ix2Devices].Devices, 2, "%#+v", profileAssignmentReqs)
|
||||
require.Equal(t, devices[0].SerialNumber, profileAssignmentReqs[ix2Devices].Devices[0]) // FIXME: this test seems to be flaky
|
||||
require.Equal(t, addedSerial, profileAssignmentReqs[ix2Devices].Devices[1])
|
||||
require.ElementsMatch(t, []string{devices[0].SerialNumber, addedSerial}, profileAssignmentReqs[ix2Devices].Devices)
|
||||
checkHostDEPAssignProfileResponses(profileAssignmentReqs[ix2Devices].Devices, profileAssignmentReqs[ix2Devices].ProfileUUID, fleet.DEPAssignProfileResponseSuccess)
|
||||
|
||||
// - existing device with "modified" and a different team (thus different profile request)
|
||||
|
Loading…
Reference in New Issue
Block a user