mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
playlist: Improve test (#29120)
* playlist: Improve test Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
parent
d6a645aae2
commit
8c9bb7a215
@ -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())
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user