diff --git a/cmd/server/tests/scanner_integration_test.go b/cmd/server/tests/scanner_integration_test.go index 9171a13..e1790f9 100644 --- a/cmd/server/tests/scanner_integration_test.go +++ b/cmd/server/tests/scanner_integration_test.go @@ -84,6 +84,9 @@ func (s *ScannerIntegrationTestSuite) TestScanProgress_TracksStatistics() { require.True(s.T(), ok, "job_id should be string") require.NotEmpty(s.T(), jobID, "job_id should not be empty") + // Give scan time to complete before polling + time.Sleep(3 * time.Second) + var lastProgress float64 var lastFilesScanned, lastNewItems, lastErrors int