update
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user