Fixed a config_test that should've failed but didn't because ftp:// uris work now. HeH!

This commit is contained in:
Ali Rizvi-Santiago 2017-03-01 14:52:55 -06:00
parent e42a23ecb5
commit e940dc7e42
1 changed files with 0 additions and 11 deletions

View File

@ -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())