forked from TrueCloudLab/rclone
Fix tests for missing config file
This commit is contained in:
parent
80c044f2d3
commit
cbfec0d281
1 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue