Skip to content

Commit

Permalink
lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhadfield committed May 19, 2024
1 parent 1a4bf61 commit 34a0cd2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const (
goSobaOrg = "go-soba"
sobaOrgOne = "soba-org-one"
sobaOrgTwo = "soba-org-two"
skipGitHubTestMissingToken = "Skipping GitHub test as %s is missing"
skipGitHubTestMissingToken = "Skipping GitHub test as %s is missing" //nolint:gosec
)

func TestGetBackupInterval(t *testing.T) {
Expand Down Expand Up @@ -88,7 +88,7 @@ func TestGitInstalled(t *testing.T) {
require.NotEmpty(t, gitPath)

// mock exec.LookPath function to return an error
lookPath = func(file string) (string, error) {
lookPath = func(file string) (string, error) { //nolint:revive
return "", errors.New("command not found")
}
defer func() { lookPath = exec.LookPath }()
Expand Down Expand Up @@ -420,7 +420,6 @@ func TestGithubRepositoryBackupWithInvalidToken(t *testing.T) {
result := githubHost.Backup()
require.NotNil(t, result.Error)
require.Contains(t, errors.Unwrap(result.Error).Error(), "Bad credentials")

}

func TestPublicGithubRepositoryBackup(t *testing.T) {
Expand Down

0 comments on commit 34a0cd2

Please sign in to comment.