Skip to content

Commit

Permalink
Close channel to prevent deadlock
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredoconnell authored and redhat-renovate-bot committed Jul 29, 2024
1 parent 5c319a5 commit 2f9ceef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/connector/connector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ func RunStep(t *testing.T, connector deployer.Connector, moduleName string, step
receivedSignalsChan,
emittedSignalsChan,
)
close(receivedSignalsChan) // Necessary to prevent a deadlock
assert.NoError(t, atpClient.Close())

return executionResult.OutputID, executionResult.OutputData, executionResult.Error
Expand Down

0 comments on commit 2f9ceef

Please sign in to comment.