feat(qa): add web search provider port (#60)
This commit is contained in:
@ -118,6 +118,13 @@ func qa53Setup(t *testing.T) *qa53Fixture {
|
||||
if _, err = db.Exec(string(quotaMigration)); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
webMigration, err := os.ReadFile("../database/migrations/000026_qa_web_search.up.sql")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if _, err = db.Exec(string(webMigration)); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
repo := models.NewRepository(db)
|
||||
now := time.Now().UTC().Truncate(time.Microsecond)
|
||||
model, provider := ticket14ModelA, ticket14ProviderA
|
||||
@ -328,7 +335,7 @@ func TestTicket53PendingRecoveryDeletionAndCapturedExpiryPostgres(t *testing.T)
|
||||
if err != nil || !recovered.Replay || recovered.Turn.Status != "failed" {
|
||||
t.Fatal("stale pending not recoverable", recovered, err)
|
||||
}
|
||||
if _, err = f.repo.FinishQAQuestion(ctx, ticket14UserA, qa53Summary, work.Turn.ID, "late answer", "", f.now.Add(summaryqa.PendingLifetime)); !errors.Is(err, summaryqa.ErrConflict) {
|
||||
if _, err = f.repo.FinishQAQuestion(ctx, ticket14UserA, qa53Summary, work.Turn.ID, summaryqa.AnswerResult{Answer: "late answer"}, "", f.now.Add(summaryqa.PendingLifetime)); !errors.Is(err, summaryqa.ErrConflict) {
|
||||
t.Fatal("late answer resurrected failed turn", err)
|
||||
}
|
||||
if _, err = f.db.Exec(`UPDATE users SET source_article_retention_days=30`); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user