This commit is contained in:
2026-02-17 18:02:43 +07:00
parent 6b49fa68c0
commit ad87934abf
2 changed files with 29 additions and 11 deletions

View File

@@ -81,13 +81,13 @@ function test_large_binary_receive()
# For link transport, result.data is the URL
log_trace("Received link transport")
end
# Verify the received data matches the original
if result.envelope.type == "binary"
if isa(result.data, Vector{UInt8})
file_size = length(result.data)
log_trace("Received $(file_size) bytes of binary data")
# Save received data to a test file
println("metadata ", result.envelope.metadata)
dataname = result.envelope.metadata["dataname"]
@@ -96,7 +96,7 @@ function test_large_binary_receive()
write(output_path, result.data)
log_trace("Saved received data to $output_path")
end
# Verify file size
original_size = length(read(FILE_PATH))
if file_size == result.envelope.metadata["content_length"]