Skip to content

Commit 991ede7

Browse files
committed
test: fix agent start test
Signed-off-by: Toma Puljak <[email protected]>
1 parent b40b8a0 commit 991ede7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/agent/agent_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func TestAgent(t *testing.T) {
7676
mockGitService := mock_git.NewMockGitService()
7777
mockGitService.On("RepositoryExists").Return(true, nil)
7878
mockGitService.On("SetGitConfig", mock.Anything, mock.Anything).Return(nil)
79-
mockGitService.On("GetGitStatus").Return(gitStatus1, nil)
79+
mockGitService.On("GetGitStatus").Return(gitStatus1, nil).Maybe()
8080

8181
mockSshServer := mocks.NewMockSshServer()
8282
mockTailscaleServer := mocks.NewMockTailscaleServer()

0 commit comments

Comments
 (0)