Skip to content

Commit

Permalink
fixup! Add support for Message(::Memory) on Julia 1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWrigley committed Jul 9, 2024
1 parent d7627a6 commit 7c10ae2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,13 @@ end
ZMQ.bind(s1, "tcp://*:5555")
ZMQ.connect(s2, "tcp://localhost:5555")

# Sleep for a bit to prevent the 'slow joiner' problem
sleep(0.5)

# Message(::Int) - construct from buffer size
data = rand(UInt8, 10)
m1 = Message(length(data))
# Note that we don't use copy!() for compatibility with Julia 1.3
for i in eachindex(data)
m1[i] = data[i]
end
Expand Down

0 comments on commit 7c10ae2

Please sign in to comment.