Skip to content

Commit 40ac312

Browse files
authored
Merge branch 'main' into ring-unit-tests
2 parents 876b6cb + e0f6026 commit 40ac312

File tree

14 files changed

+943
-556
lines changed

14 files changed

+943
-556
lines changed

Cargo.lock

Lines changed: 41 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/freenet-ping/Cargo.lock

Lines changed: 53 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/freenet-ping/app/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ humantime = "2.2.0"
2626

2727
[dev-dependencies]
2828
freenet = { path = "../../../crates/core" }
29+
serial_test = "3"
2930
test-log = "0.2"
3031
testresult = { workspace = true }
3132

apps/freenet-ping/app/tests/common/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,14 +330,16 @@ fn compile_contract(contract_path: &PathBuf) -> anyhow::Result<Vec<u8>> {
330330
&BuildToolConfig {
331331
features: None,
332332
package_type: PackageType::Contract,
333-
debug: true,
333+
// Use release builds - debug WASM is ~12MB vs ~186KB for release,
334+
// which exceeds WebSocket message size limits when serialized
335+
debug: false,
334336
},
335337
contract_path,
336338
)?;
337339

338340
let output_file = Path::new(&target)
339341
.join(WASM_TARGET)
340-
.join("debug")
342+
.join("release")
341343
.join(WASM_FILE_NAME.replace('-', "_"))
342344
.with_extension("wasm");
343345
println!("output file: {output_file:?}");

0 commit comments

Comments
 (0)