mirror of
https://github.com/grafana/grafana.git
synced 2024-11-28 11:44:26 -06:00
Chore: Remove x from annotation test (#46935)
This commit is contained in:
parent
90f2233ea9
commit
e6726681a9
@ -21,9 +21,14 @@ func TestAnnotations(t *testing.T) {
|
|||||||
|
|
||||||
t.Run("Testing annotation create, read, update and delete", func(t *testing.T) {
|
t.Run("Testing annotation create, read, update and delete", func(t *testing.T) {
|
||||||
t.Cleanup(func() {
|
t.Cleanup(func() {
|
||||||
_, err := x.Exec("DELETE FROM annotation WHERE 1=1")
|
err := repo.sql.WithDbSession(context.Background(), func(dbSession *DBSession) error {
|
||||||
assert.NoError(t, err)
|
_, err := dbSession.Exec("DELETE FROM annotation WHERE 1=1")
|
||||||
_, err = x.Exec("DELETE FROM annotation_tag WHERE 1=1")
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
_, err = dbSession.Exec("DELETE FROM annotation_tag WHERE 1=1")
|
||||||
|
return err
|
||||||
|
})
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user