Skip to content

Commit

Permalink
increase runner test start up time
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Pickett committed Sep 24, 2024
1 parent cd65542 commit 6f3bb1a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ee/desktop/runner/runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,7 @@ func TestDesktopUserProcessRunner_Execute(t *testing.T) {
mockKnapsack.On("DesktopUpdateInterval").Return(time.Millisecond * 250)
mockKnapsack.On("DesktopMenuRefreshInterval").Return(time.Millisecond * 250)
mockKnapsack.On("KolideServerURL").Return("somewhere-over-the-rainbow.example.com")

// don't try to display desktop under test, causes CI flakeyness
// (we still test process management, just without trying to display the desktop)
mockKnapsack.On("DesktopEnabled").Return(false)
mockKnapsack.On("DesktopEnabled").Return(true)
mockKnapsack.On("Slogger").Return(slogger)
mockKnapsack.On("InModernStandby").Return(false)
mockKnapsack.On("SystrayRestartEnabled").Return(false).Maybe()
Expand Down Expand Up @@ -156,7 +153,7 @@ func TestDesktopUserProcessRunner_Execute(t *testing.T) {
}()

// let it run a few intervals
time.Sleep(r.updateInterval * 3)
time.Sleep(r.updateInterval * 6)
r.Interrupt(nil)

user, err := user.Current()
Expand Down

0 comments on commit 6f3bb1a

Please sign in to comment.