From da458a55db7184e030e426e75c708442f477b291 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Mon, 8 Mar 2021 22:41:01 +0100 Subject: [PATCH] Cleanup comments in secondary repo test --- cmd/restic/secondary_repo_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/restic/secondary_repo_test.go b/cmd/restic/secondary_repo_test.go index ee6565e88..47c1816af 100644 --- a/cmd/restic/secondary_repo_test.go +++ b/cmd/restic/secondary_repo_test.go @@ -42,7 +42,7 @@ func TestFillSecondaryGlobalOpts(t *testing.T) { }, }, { - // Test if RepositoryFile and PasswordFile are parsed correctly. + // Test if RepositoryFile and PasswordCommand are parsed correctly. Opts: secondaryRepoOptions{ RepositoryFile: "backupDst", PasswordCommand: "echo secretDst", @@ -69,7 +69,7 @@ func TestFillSecondaryGlobalOpts(t *testing.T) { }, }, { - // Test must fail on no repo given. + // Test must fail as PasswordFile and PasswordCommand are both given Opts: secondaryRepoOptions{ Repo: "backupDst", PasswordFile: "passwordFileDst", @@ -77,21 +77,21 @@ func TestFillSecondaryGlobalOpts(t *testing.T) { }, }, { - // Test must fail on no repo given. + // Test must fail as PasswordFile does not exist Opts: secondaryRepoOptions{ Repo: "backupDst", PasswordFile: "NonExistingFile", }, }, { - // Test must fail on no repo given. + // Test must fail as PasswordCommand does not exist Opts: secondaryRepoOptions{ Repo: "backupDst", PasswordCommand: "notEmpty", }, }, { - // Test must fail on no repo given. + // Test must fail as no password is given. Opts: secondaryRepoOptions{ Repo: "backupDst", },