Wait for all search indexes in API user journey
release / android (APK в релиз) (push) Successful in 4m55s
ci / api / api (push) Successful in 31s
ci / db / db (push) Successful in 53s
release / release (версия и заметки) (push) Successful in 6s
release / desktop (Linux и Windows в релиз) (push) Successful in 19m16s
release / prune (старые файлы и прогоны) (push) Successful in 10s

This commit is contained in:
mrleo1nid committed 2026-10-30 11:24:44 +03:00
1 parent bbd629dcf8
commit 3309a79a98
1 file changed
+4 -1
+4 -1
View File
@@ -219,7 +219,10 @@ func TestUserJourney(t *testing.T) {
} }
eventually(t, "search index", func() bool { eventually(t, "search index", func() bool {
time.Sleep(time.Second) time.Sleep(time.Second)
return c.call("GET", "/api/v1/search?q="+url.QueryEscape("кино"), nil, &found) == 200 && len(found.Albums) == 1 // Artists, albums and tracks are swapped separately. Seeing the album
// does not mean the track index is ready for personalized suggestions.
return c.call("GET", "/api/v1/search?q="+url.QueryEscape("кино"), nil, &found) == 200 &&
len(found.Artists) == 1 && len(found.Albums) == 1 && len(found.Tracks) == 3
}) })
// 4. Альбом, исполнитель, популярные треки. // 4. Альбом, исполнитель, популярные треки.