mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Fix failing TestApplyTeamSpecEnrollSecretForNewTeams (#19414)
Fix failing TestApplyTeamSpecEnrollSecretForNewTeams
This commit is contained in:
parent
fd4a1a04e2
commit
49872be675
1 changed files with 1 additions and 0 deletions
|
|
@ -423,6 +423,7 @@ func TestApplyTeamSpecEnrollSecretForNewTeams(t *testing.T) {
|
|||
require.Equal(t, enrollSecret.Secret, team.Secrets[0].Secret)
|
||||
return &fleet.Team{ID: 1}, nil
|
||||
}
|
||||
ds.NewTeamFuncInvoked = false
|
||||
|
||||
// Dry run -- secret already used
|
||||
ds.IsEnrollSecretAvailableFunc = func(ctx context.Context, secret string, new bool, teamID *uint) (bool, error) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue