fix: db was failing under testing
This commit is contained in:
@@ -26,6 +26,9 @@ func TestIntegration(t *testing.T) {
|
||||
if err := db.Migrate(ctx); err != nil {
|
||||
t.Fatalf("Migrate failed: %v", err)
|
||||
}
|
||||
if _, err := pool.Exec(ctx, "TRUNCATE users, conversations, messages, contacts, sessions RESTART IDENTITY CASCADE"); err != nil {
|
||||
t.Fatalf("truncate failed: %v", err)
|
||||
}
|
||||
|
||||
// Users
|
||||
u1, err := db.CreateUser(ctx, "user1", "User One", "hash1")
|
||||
|
||||
Reference in New Issue
Block a user