@@ -2189,7 +2189,7 @@ async fn activity_js_fetch_denied() {
21892189 . await ;
21902190 assert_eq ! ( resp. status( ) . as_u16( ) , 201 ) ;
21912191 let body: Value = resp. json ( ) . await . unwrap ( ) ;
2192- let err = body[ "error " ] . as_str ( ) . expect ( "expected error field" ) ;
2192+ let err = body[ "err " ] . as_str ( ) . expect ( "expected err field" ) ;
21932193 assert ! (
21942194 err. contains( "HttpRequestDenied" ) ,
21952195 "Expected error to contain 'HttpRequestDenied', got: {err}"
@@ -2255,8 +2255,8 @@ async fn activity_js_throw_null_void_err() {
22552255 . await ;
22562256 assert_eq ! ( resp. status( ) . as_u16( ) , 201 ) ;
22572257 let body: Value = resp. json ( ) . await . unwrap ( ) ;
2258- // `throw null` with void err channel → Err(None) → {"error ": null}
2259- assert_eq ! ( body, json!( { "error " : null } ) ) ;
2258+ // `throw null` with void err channel → Err(None) → {"err ": null}
2259+ assert_eq ! ( body, json!( { "err " : null } ) ) ;
22602260 server. shutdown ( ) . await ;
22612261}
22622262
@@ -2271,7 +2271,7 @@ async fn activity_js_variant_err_throw() {
22712271 . await ;
22722272 assert_eq ! ( resp. status( ) . as_u16( ) , 201 ) ;
22732273 let body: Value = resp. json ( ) . await . unwrap ( ) ;
2274- assert_eq ! ( body, json!( { "error " : "not_found" } ) ) ;
2274+ assert_eq ! ( body, json!( { "err " : "not_found" } ) ) ;
22752275 server. shutdown ( ) . await ;
22762276}
22772277
@@ -2301,15 +2301,15 @@ async fn workflow_js_rich_return_type() {
23012301 . await ;
23022302 assert_eq ! ( resp. status( ) . as_u16( ) , 201 ) ;
23032303 let body: Value = resp. json ( ) . await . unwrap ( ) ;
2304- assert_eq ! ( body, json!( { "error " : "not_found" } ) ) ;
2304+ assert_eq ! ( body, json!( { "err " : "not_found" } ) ) ;
23052305
23062306 // err: null (void err channel — result<string>)
23072307 let resp = server
23082308 . submit_follow ( "testing:integration/workflow-throw-null.throw-null" , vec ! [ ] )
23092309 . await ;
23102310 assert_eq ! ( resp. status( ) . as_u16( ) , 201 ) ;
23112311 let body: Value = resp. json ( ) . await . unwrap ( ) ;
2312- assert_eq ! ( body, json!( { "error " : null } ) ) ;
2312+ assert_eq ! ( body, json!( { "err " : null } ) ) ;
23132313 server. shutdown ( ) . await ;
23142314}
23152315
@@ -3220,7 +3220,7 @@ async fn activity_exec_void_err() {
32203220 . await ;
32213221 assert_eq ! ( resp. status( ) . as_u16( ) , 201 ) ;
32223222 let body: Value = resp. json ( ) . await . unwrap ( ) ;
3223- assert_eq ! ( body, json!( { "error " : null } ) ) ;
3223+ assert_eq ! ( body, json!( { "err " : null } ) ) ;
32243224 server. shutdown ( ) . await ;
32253225}
32263226
@@ -3261,7 +3261,7 @@ async fn activity_exec_error_exit() {
32613261 . await ;
32623262 assert_eq ! ( resp. status( ) . as_u16( ) , 201 ) ;
32633263 let body: Value = resp. json ( ) . await . unwrap ( ) ;
3264- assert_eq ! ( body, json!( { "error " : "something went wrong" } ) ) ;
3264+ assert_eq ! ( body, json!( { "err " : "something went wrong" } ) ) ;
32653265 server. shutdown ( ) . await ;
32663266}
32673267
0 commit comments