Skip to content

Commit

Permalink
refactor(tests): fix conflict of variable scope by renaming local var…
Browse files Browse the repository at this point in the history
…iables during upgrade of groovy 3.x (#1351)

Rectification w.r.t variable named `event` in [PR](#1341) of AbstractEventNotificationAgentSpec.groovy class.
  • Loading branch information
j-sandy committed Oct 6, 2023
1 parent e1bbdd5 commit 3177912
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -39,7 +39,7 @@ class AbstractEventNotificationAgentSpec extends Specification {
@Unroll
def "sends notifications based on status and configuration"() {
given:
subclassMock.sendNotifications(*_) >> { notification, application, event, config, status_local -> }
subclassMock.sendNotifications(*_) >> { notification, application, event_local, config, status -> }

when:
agent.processEvent(event)
Expand Down

0 comments on commit 3177912

Please sign in to comment.