mirror of
https://github.com/restic/restic.git
synced 2025-08-12 03:27:40 +00:00
Merge pull request #2505 from aawsome/fix-repo-configfile
Fix repo configfile
This commit is contained in:
@@ -273,6 +273,14 @@ func TestLoadJSONUnpacked(t *testing.T) {
|
||||
|
||||
rtest.Equals(t, sn.Hostname, sn2.Hostname)
|
||||
rtest.Equals(t, sn.Username, sn2.Username)
|
||||
|
||||
var cf restic.Config
|
||||
|
||||
// load and check Config
|
||||
err = repo.LoadJSONUnpacked(context.TODO(), restic.ConfigFile, id, &cf)
|
||||
rtest.OK(t, err)
|
||||
|
||||
rtest.Equals(t, cf.ChunkerPolynomial, repository.TestChunkerPol)
|
||||
}
|
||||
|
||||
var repoFixture = filepath.Join("testdata", "test-repo.tar.gz")
|
||||
|
Reference in New Issue
Block a user