Skip to content

Commit

Permalink
fix golang-ci issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ilijamt committed Oct 10, 2024
1 parent f8d3105 commit e96f355
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gitlab_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func TestGitlabClient_GetGroupIdByPath(t *testing.T) {
require.NoError(t, err)
require.EqualValues(t, 39, groupId)

groupId, err = client.GetGroupIdByPath("nonexistent")
_, err = client.GetGroupIdByPath("nonexistent")
require.ErrorIs(t, err, gitlab.ErrInvalidValue)
}

Expand Down
4 changes: 2 additions & 2 deletions helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ func (m *mockEventsSender) resetEvents(t *testing.T) {
}

func (m *mockEventsSender) SendEvent(ctx context.Context, eventType logical.EventType, event *logical.EventData) error {
m.mu.Lock()
defer m.mu.Unlock()
if m == nil {
return nil
}
m.mu.Lock()
defer m.mu.Unlock()
m.eventsProcessed = append(m.eventsProcessed, &logical.EventReceived{
EventType: string(eventType),
Event: event,
Expand Down

0 comments on commit e96f355

Please sign in to comment.