mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-30 05:37:05 +02:00
Use fmt.Errorf, error strings should start lowercase
This commit is contained in:
parent
a9e07915ce
commit
28ed1183e4
4 changed files with 10 additions and 15 deletions
|
@ -49,14 +49,14 @@ func TestResolveBackendUnknown(t *testing.T) {
|
|||
config := viper.New()
|
||||
config.Set("backend", "foo")
|
||||
_, err := backends.ResolveBackend[models.ListensImport](config)
|
||||
assert.EqualError(t, err, "Unknown backend foo")
|
||||
assert.EqualError(t, err, "unknown backend foo")
|
||||
}
|
||||
|
||||
func TestResolveBackendInvalidInterface(t *testing.T) {
|
||||
config := viper.New()
|
||||
config.Set("backend", "dump")
|
||||
_, err := backends.ResolveBackend[models.ListensExport](config)
|
||||
assert.EqualError(t, err, "Backend dump does not implement ListensExport")
|
||||
assert.EqualError(t, err, "backend dump does not implement ListensExport")
|
||||
}
|
||||
|
||||
func TestGetBackends(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue