common: fix tests
This commit is contained in:
parent
2110edb690
commit
48fb1f9dfb
|
@ -144,8 +144,8 @@ func TestDownloadableURL_FilePaths(t *testing.T) {
|
|||
for _, prefix := range []string{"", "file://"} {
|
||||
// Nonexistent file
|
||||
_, err = DownloadableURL(prefix + "i/dont/exist")
|
||||
if err == nil {
|
||||
t.Fatal("expected err")
|
||||
if err != nil {
|
||||
t.Fatalf("err: %s", err)
|
||||
}
|
||||
|
||||
// Good file
|
||||
|
|
Loading…
Reference in New Issue