Include a total counter. This will be used to distinguish total scans regardless of success or not. this is needed in order to display initial progress when starting scans.

This commit is contained in:
Ahrav Dutta
2022-09-17 18:22:37 -07:00
parent e0e29f5b5f
commit d6d6940cf9
6 changed files with 39 additions and 26 deletions
+1 -1
View File
@@ -425,7 +425,7 @@ func Test_setProgressCompleteWithRepo_Progress(t *testing.T) {
// Increment the progress counter by number of repos already processed.
for i := 1; i <= tt.offset; i++ {
s.Counter.Inc()
s.Counter.IncSuccess()
}
s.setProgressCompleteWithRepo(tt.offset, "")