//go:build integration

package models

import (
	"testing"

	"github.com/stretchr/testify/require"
	"gorm.io/gorm"
	"senlinai-agent/backend/internal/testutil"
)

func TestPostgresPing(t *testing.T) {
	database := testutil.OpenIsolatedPostgres(t, &gorm.Config{TranslateError: true})
	sqlDB, err := database.DB()
	require.NoError(t, err)
	require.NoError(t, sqlDB.Ping())
}
