Skip to content

Commit

Permalink
fix standalone_integration_test yet again
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Oct 24, 2024
1 parent a387dc5 commit b224fd6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/testing/tests/standalone_integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async fn call_reducer(module: &ModuleHandle, reducer: &str, args: &str, request_
r#"{{
"CallReducer": {{
"reducer_id": {reducer_id},
"args": {args},
"args": "{args}",
"request_id": {request_id},
"flags": 0
}}
Expand All @@ -65,8 +65,8 @@ fn test_calling_a_reducer_in_module(module_name: &'static str) {
|module| async move {
call_reducer(&module, "add", r#"[\"Tyrion\", 24]"#, 0).await;
call_reducer(&module, "add", r#"[\"Cersei\", 31]"#, 1).await;
call_reducer(&module, "say_hello", r#"[]"#, 2).await;
call_reducer(&module, "list_over_age", r#"[30]"#, 3).await;
call_reducer(&module, "say_hello", "[]", 2).await;
call_reducer(&module, "list_over_age", "[30]", 3).await;
assert_eq!(
read_logs(&module).await,
[
Expand Down Expand Up @@ -254,7 +254,7 @@ fn test_index_scans() {
}

async fn bench_call<'a>(module: &ModuleHandle, call: &str, count: &u32) -> Duration {
let args = format!(r#"[{count}]"#);
let args = format!("[{count}]");
let now = Instant::now();
call_reducer(module, call, &args, 0).await;
now.elapsed()
Expand Down

0 comments on commit b224fd6

Please sign in to comment.