Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into becca/runner-rungroup
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaMahany committed Feb 9, 2024
2 parents b65b9ca + f8d0bea commit dc8e797
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ee/agent/timemachine/timemachine_darwin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"path/filepath"
"strings"
"testing"
"time"

"github.com/kolide/launcher/ee/agent/types/mocks"
"github.com/kolide/launcher/ee/allowedcmd"
Expand Down Expand Up @@ -81,6 +82,11 @@ func TestAddExclusions(t *testing.T) {

AddExclusions(context.TODO(), knapsack)

// we've seen some flake in CI here where the exclusions have not been
// updated by the time we perform assertions, so sleep for a bit to give
// OS some time to catch up
time.Sleep(1 * time.Second)

// ensure the files are included / excluded as expected
for fileName, shouldBeExcluded := range shouldBeExcluded {
cmd, err := allowedcmd.Tmutil(context.TODO(), "isexcluded", filepath.Join(testDir, fileName))
Expand Down

0 comments on commit dc8e797

Please sign in to comment.