mirror of
https://github.com/lukaszraczylo/gohoarder.git
synced 2026-11-26 06:37:07 +00:00
fix(stats): upsert hourly and daily stats on SQLite as PostgreSQL does
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
//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))
|
||||
}
|
||||
Reference in New Issue
Block a user