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()
|
_, err = loadConfigFile()
|
||||||
require.Error(t, err)
|
require.Error(t, err)
|
||||||
|
|
||||||
// This file contains invalid base64 characters.
|
// This file does not exist.
|
||||||
ConfigPath = "./testdata/filenotfound.conf"
|
ConfigPath = "./testdata/filenotfound.conf"
|
||||||
c, err := loadConfigFile()
|
c, err := loadConfigFile()
|
||||||
require.NoError(t, err)
|
assert.Equal(t, errorConfigFileNotFound, err)
|
||||||
require.Len(t, c.GetSectionList(), 0, "Expected 0-length section")
|
assert.Nil(t, c)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestPassword(t *testing.T) {
|
func TestPassword(t *testing.T) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue