Skip to content

Commit

Permalink
GH runner may take long to stop the service
Browse files Browse the repository at this point in the history
  • Loading branch information
pjanotti committed Mar 8, 2024
1 parent 827ec2a commit 40b3eca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions otelcol/collector_windows_service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ func TestCollectorAsService(t *testing.T) {
defer func() {
_, err = service.Control(svc.Stop)
require.NoError(t, err)

require.Eventually(t, func() bool {
status, _ := service.Query()
return status.State == svc.Stopped
}, 10*time.Second, 500*time.Millisecond)
}()
}

Expand Down

0 comments on commit 40b3eca

Please sign in to comment.