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 @@
package sqlstore
import (
"fmt"
"testing"
"github.com/grafana/grafana/pkg/models"
......@@ -61,8 +60,10 @@ func TestPlaylistDataAccess(t *testing.T) {
}
for _, tc := range testCases {
err := DeletePlaylist(&tc.cmd)
require.EqualError(t, err, models.ErrCommandValidationFailed.Error(), fmt.Sprintf("expected command validation error for %q", tc.desc))
t.Run(tc.desc, func(t *testing.T) {
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