fix: the search test reads the last pass as JSON, since jsonb respaces it (M502 #5521)
release / govulncheck (push) Successful in 16s
release / web (push) Successful in 1m31s
release / go (push) Successful in 1m42s
release / integration (push) Successful in 5m18s
release / android (push) Successful in 5m18s
release / Build signed APK (releases and dev) (push) Successful in 5m35s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 30s
release / Verify release artifacts (tag releases only) (push) Skipped

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-10 09:02:18 -04:00
co-authored by Claude Opus 5.5
parent 89b3b44779
commit 7f1fe57935
+3 -2
View File
@@ -117,8 +117,9 @@ func TestSearcher_FindsAndTakesAWant_Integration(t *testing.T) {
t.Errorf("grab = %+v", g)
}
settings, _ := q.GetAcquisitionSettings(ctx)
if !settings.LastPassAt.Valid || !strings.Contains(string(settings.LastPass), `"grabbed":1`) {
t.Errorf("last pass = %s", settings.LastPass)
var last Report
if err := json.Unmarshal(settings.LastPass, &last); err != nil || !settings.LastPassAt.Valid || last.Grabbed != 1 {
t.Errorf("last pass = %s (%v)", settings.LastPass, err)
}
// A want with a download running is not searched again.