1
mirror of https://github.com/rclone/rclone synced 2025-01-13 17:06:24 +01:00

Fix tests for missing config file

This commit is contained in:
Nick Craig-Wood 2016-12-20 15:05:08 +00:00
parent 80c044f2d3
commit cbfec0d281

View File

@ -195,11 +195,11 @@ func TestConfigLoadEncryptedFailures(t *testing.T) {
_, err = loadConfigFile()
require.Error(t, err)
// This file contains invalid base64 characters.
// This file does not exist.
ConfigPath = "./testdata/filenotfound.conf"
c, err := loadConfigFile()
require.NoError(t, err)
require.Len(t, c.GetSectionList(), 0, "Expected 0-length section")
assert.Equal(t, errorConfigFileNotFound, err)
assert.Nil(t, c)
}
func TestPassword(t *testing.T) {