Commit 8c9bb7a2 by Arve Knudsen Committed by GitHub

playlist: Improve test (#29120)

* playlist: Improve test

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
parent d6a645aa
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
package sqlstore package sqlstore
import ( import (
"fmt"
"testing" "testing"
"github.com/grafana/grafana/pkg/models" "github.com/grafana/grafana/pkg/models"
...@@ -61,8 +60,10 @@ func TestPlaylistDataAccess(t *testing.T) { ...@@ -61,8 +60,10 @@ func TestPlaylistDataAccess(t *testing.T) {
} }
for _, tc := range testCases { for _, tc := range testCases {
err := DeletePlaylist(&tc.cmd) t.Run(tc.desc, func(t *testing.T) {
require.EqualError(t, err, models.ErrCommandValidationFailed.Error(), fmt.Sprintf("expected command validation error for %q", tc.desc)) err := DeletePlaylist(&tc.cmd)
require.EqualError(t, err, models.ErrCommandValidationFailed.Error())
})
} }
}) })
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment