mirror of
https://github.com/lukaszraczylo/gohoarder.git
synced 2026-11-26 06:37:07 +00:00
16 lines
355 B
Go
16 lines
355 B
Go
//go:build pgintegration
|
|
|
|
package gormstore
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
// The same scenario the SQLite test runs: both dialects must report the same totals.
|
|
func TestPostgresHourlyTotalsMatchSQLite(t *testing.T) {
|
|
store, _ := newPostgresStore(t)
|
|
require.Equal(t, wantHourlyScenario(), runHourlyScenario(t, store))
|
|
}
|