From 6f3bb1a677f8b090a6c6d0dd80f729b136236f8d Mon Sep 17 00:00:00 2001 From: James Pickett Date: Tue, 24 Sep 2024 11:50:12 -0700 Subject: [PATCH] increase runner test start up time --- ee/desktop/runner/runner_test.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ee/desktop/runner/runner_test.go b/ee/desktop/runner/runner_test.go index 9e1cfcbf9..9b26444b1 100644 --- a/ee/desktop/runner/runner_test.go +++ b/ee/desktop/runner/runner_test.go @@ -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() @@ -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()