He-Pin commented on code in PR #3273:
URL: https://github.com/apache/pekko/pull/3273#discussion_r3498254354


##########
actor-tests/src/test/scala/org/apache/pekko/io/TcpIntegrationSpec.scala:
##########
@@ -187,8 +187,12 @@ class TcpIntegrationSpec extends PekkoSpec("""
     "reply with CommandFailed when a connect socket option fails before 
connect" in {
       val connectCommander = TestProbe()
       val failure = new UnsupportedOperationException("boom")
+      @volatile var socket: Socket = null

Review Comment:
   better with atomicRefernece



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to