Fixed a config_test that should've failed but didn't because ftp:// uris work now. HeH!
This commit is contained in:
parent
e42a23ecb5
commit
e940dc7e42
|
@ -76,17 +76,6 @@ func TestNewConfig_sourcePath(t *testing.T) {
|
|||
t.Fatalf("Nonexistant file should throw a validation error!")
|
||||
}
|
||||
|
||||
// Bad
|
||||
c = testConfig(t)
|
||||
c["source_path"] = "ftp://i/dont/exist"
|
||||
_, warns, err = NewConfig(c)
|
||||
if len(warns) > 0 {
|
||||
t.Fatalf("bad: %#v", warns)
|
||||
}
|
||||
if err == nil {
|
||||
t.Fatal("should error")
|
||||
}
|
||||
|
||||
// Good
|
||||
tf := getTempFile(t)
|
||||
defer os.Remove(tf.Name())
|
||||
|
|
Loading…
Reference in New Issue