Files
mtusi2026lab7/internal/user/main_test.go
T
kudesn1k 8054913ef9
Application / e2e (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s
Application / unit (pull_request) Canceled after 0s
Перенеси реализацию мессенджера из ЛР 6
Источник — проверенное рабочее дерево ЛР 6 поверх 18878d6, включая изменения после повторного ревью. SHA-256 списка исходных файлов: e45a3d85b41feff1da78dce3f20fd1f4af1c5ee629e6ed703218bc8e21ad58fe.
2026-11-30 10:54:41 +03:00

25 lines
327 B
Go

package user_test
import (
"context"
"fmt"
"os"
"testing"
"messenger/internal/testenv"
)
var db *testenv.DB
func TestMain(m *testing.M) {
var err error
db, err = testenv.StartPostgres(context.Background())
if err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
code := m.Run()
db.Close()
os.Exit(code)
}