mirror of
https://github.com/grafana/grafana.git
synced 2025-01-18 04:23:33 -06:00
61533a3cb4
* remove bus from health api * fix health api tests * use db health query as a method * use pointer in sqlstore mock
21 lines
370 B
Go
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)
|
|
}
|