grafana/pkg/services/sqlstore/health_test.go
Carl Bergquist c9f25cf0a5
Context: Add context to /api/health calls (#40031)
Signed-off-by: bergquist <carl.bergquist@gmail.com>
2021-10-11 14:35:03 +02:00

21 lines
355 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) {
InitTestDB(t)
query := models.GetDBHealthQuery{}
err := GetDBHealthQuery(context.Background(), &query)
require.NoError(t, err)
}