lab4 done

This commit is contained in:
Khakimov Dmitrij
2026-10-28 22:41:10 +03:00
parent a7bedda183
commit dbc700fafe
75 changed files with 5611 additions and 227 deletions
@@ -142,6 +142,13 @@ func TestIntegration(t *testing.T) {
if err != nil {
t.Fatal(err)
}
t.Run("lab4_attachments_and_reconciliation", func(t *testing.T) {
isolated, e := repo.CreateChat(ctx, "Lab4", []string{user.ID})
if e != nil {
t.Fatal(e)
}
lab4Backend(t, pool, repo, user, isolated)
})
_, err = pool.Exec(ctx, `INSERT INTO messages(id,chat_id,sender_id,text,created_at)
SELECT md5(i::text)::uuid,$1,$2,'synthetic message '||i,
timestamptz '2026-01-01 00:00:00+00' + (i / 10) * interval '1 millisecond'