grafana/pkg/services/sqlstore/health_test.go
Serge Zaitsev 61533a3cb4
Chore: Remove bus from health api (#44897)
* remove bus from health api

* fix health api tests

* use db health query as a method

* use pointer in sqlstore mock
2022-02-04 14:33:35 +01:00

21 lines
370 B
Go

//go:build integration
// +build integration
package sqlstore
import (
"context"
"testing"
"github.com/grafana/grafana/pkg/models"
"github.com/stretchr/testify/require"
)
func TestGetDBHealthQuery(t *testing.T) {
store := InitTestDB(t)
query := models.GetDBHealthQuery{}
err := store.GetDBHealthQuery(context.Background(), &query)
require.NoError(t, err)
}