diff --git a/pkg/cmd/repo/sync/sync_test.go b/pkg/cmd/repo/sync/sync_test.go index 9fa88b469..d2127e66c 100644 --- a/pkg/cmd/repo/sync/sync_test.go +++ b/pkg/cmd/repo/sync/sync_test.go @@ -465,9 +465,11 @@ func Test_SyncRun(t *testing.T) { } func newMockGitClient(t *testing.T, config func(*mockGitClient)) *mockGitClient { + t.Helper() m := &mockGitClient{} m.Test(t) t.Cleanup(func() { + t.Helper() m.AssertExpectations(t) }) if config != nil {