add julia test file
This commit is contained in:
@@ -18,7 +18,7 @@ include("../src/NATSBridge.jl")
|
||||
using .NATSBridge
|
||||
|
||||
# Configuration
|
||||
const SUBJECT = "/test/mix"
|
||||
const SUBJECT = "/natsbridge"
|
||||
const NATS_URL = "nats.yiem.cc"
|
||||
const FILESERVER_URL = "http://192.168.88.104:8080"
|
||||
|
||||
@@ -122,10 +122,10 @@ function create_sample_data()
|
||||
# ~1.5MB of JSON data (150,000 rows) - should trigger link transport
|
||||
# NATSBridge.jl handles serialization: DataFrame -> Vector{Dict} -> JSON
|
||||
json_table_large = DataFrame(
|
||||
id = 1:150_000,
|
||||
name = ["user_$i" for i in 1:150_000],
|
||||
score = rand(50:100, 150_000),
|
||||
active = rand([true, false], 150_000)
|
||||
id = 1:1_500_000,
|
||||
name = ["user_$i" for i in 1:1_500_000],
|
||||
score = rand(50:100, 1_500_000),
|
||||
active = rand([true, false], 1_500_000)
|
||||
)
|
||||
|
||||
# Audio data (small binary - direct transport)
|
||||
|
||||
Reference in New Issue
Block a user