Merge pull request #2505 from aawsome/fix-repo-configfile

Fix repo configfile
This commit is contained in:
Alexander Neumann 2020-12-07 07:52:37 +01:00 committed by GitHub
commit 7facc8ccc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 3 deletions

View file

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