Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
Clonkk committed Dec 13, 2023
1 parent 98cd035 commit 949f952
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions tests/tdestruc.nim
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ proc sockHandler(req, rep: ZConnection, pong: string) =
req.send(pong)
let r = rep.receive()
check r == pong
# debugEcho "EndCB"

proc testDestroy() =
const sockaddr = "tcp://127.0.0.1:55001"
Expand All @@ -17,8 +16,6 @@ proc testDestroy() =

var rep = listen(sockaddr, REP)
var req = connect(sockaddr, REQ)
# unsafeRepPtr = addr(rep)
# unsafeReqPtr = addr(req)

sockHandler(req, rep, ping)
sockHandler(rep, req, pong)
Expand All @@ -28,14 +25,12 @@ proc testDestroy() =
req2.send(ping)
let r = rep.receive()
check r == ping
# debugEcho "end block scope"

rep.send(pong)
block:
var req2 = req
let r = req2.receive()
check r == pong
# debugEcho "end test scope"

when isMainModule:
testDestroy()
Expand Down

0 comments on commit 949f952

Please sign in to comment.