aboutsummaryrefslogtreecommitdiff
path: root/internal/postgres/requeue_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/postgres/requeue_test.go')
-rw-r--r--internal/postgres/requeue_test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/internal/postgres/requeue_test.go b/internal/postgres/requeue_test.go
index 17f3360c..7a4c1749 100644
--- a/internal/postgres/requeue_test.go
+++ b/internal/postgres/requeue_test.go
@@ -39,8 +39,6 @@ func TestGetNextModulesToFetchAndUpdateModuleVersionStatesForReprocessing(t *tes
statuses = []int{
http.StatusOK,
derrors.ToStatus(derrors.HasIncompletePackages),
- derrors.ToStatus(derrors.AlternativeModule),
- derrors.ToStatus(derrors.BadModule),
derrors.ToStatus(derrors.DBModuleInsertInvalid),
http.StatusInternalServerError,
http.StatusBadRequest,
@@ -151,7 +149,7 @@ func TestGetNextModulesToFetchAndUpdateModuleVersionStatesForReprocessing(t *tes
// The first modules to requeue should be the latest version of not-large modules with errors
// ReprocessStatusOK ReprocessHasIncompletePackages, ReprocessAlternative, and ReprocessBadModule.
- statuses = []int{200, 290, 480, 490, 491}
+ statuses = []int{200, 290, 480}
want = generateMods([]string{latest}, []int{small}, statuses)
// The next modules to requeue should be the small non-latest versions.
@@ -165,7 +163,7 @@ func TestGetNextModulesToFetchAndUpdateModuleVersionStatesForReprocessing(t *tes
checkNextToRequeue(want, len(mods))
// Take modules in groups by passing a limit.
- const limit = 6
+ limit := len(statuses) + 1
for i := 0; i < len(mods); i += limit {
end := i + limit
if end > len(want) {