mirror of
https://github.com/grafana/grafana.git
synced 2024-11-28 03:34:15 -06:00
b255c1b992
* Add context to star and stats * Use WithTransactionalDbSession * Add additional ctx * Remove convey * Fix star handler name * Use WithDbSession, use DispatchCtx * Remove xorm from star
21 lines
363 B
Go
21 lines
363 B
Go
//go:build integration
|
|
// +build integration
|
|
|
|
package sqlstore
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"github.com/grafana/grafana/pkg/models"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestIntegration_GetAdminStats(t *testing.T) {
|
|
InitTestDB(t)
|
|
|
|
query := models.GetAdminStatsQuery{}
|
|
err := GetAdminStats(context.Background(), &query)
|
|
require.NoError(t, err)
|
|
}
|