mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 11:52:28 +08:00
17 lines
288 B
Go
17 lines
288 B
Go
package expr
|
|
|
|
import (
|
|
"errors"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestQueryError(t *testing.T) {
|
|
e := QueryError{
|
|
RefID: "A",
|
|
Err: errors.New("this is an error message"),
|
|
}
|
|
assert.EqualError(t, e, "failed to execute query A: this is an error message")
|
|
}
|