@@ -1194,9 +1194,9 @@ mod tests {
11941194 "rest::control::respond" ,
11951195 vec ! [
11961196 literal_param( 100 , "http_status_code" , int_value( 200 ) ) ,
1197- literal_param( 101 , "headers" , empty_struct_value( ) ) ,
11981197 literal_param( 102 , "http_schema" , string_value( "application/json" ) ) ,
11991198 literal_param( 103 , "payload" , string_value( "hello" ) ) ,
1199+ literal_param( 101 , "headers" , empty_struct_value( ) ) ,
12001200 ] ,
12011201 None ,
12021202 ) ;
@@ -1212,15 +1212,15 @@ mod tests {
12121212 assert_eq ! ( node_result. parameter_results[ 0 ] . value, Some ( int_value( 200 ) ) ) ;
12131213 assert_eq ! (
12141214 node_result. parameter_results[ 1 ] . value,
1215- Some ( empty_struct_value ( ) )
1215+ Some ( string_value ( "application/json" ) )
12161216 ) ;
12171217 assert_eq ! (
12181218 node_result. parameter_results[ 2 ] . value,
1219- Some ( string_value( "application/json " ) )
1219+ Some ( string_value( "hello " ) )
12201220 ) ;
12211221 assert_eq ! (
12221222 node_result. parameter_results[ 3 ] . value,
1223- Some ( string_value ( "hello" ) )
1223+ Some ( empty_struct_value ( ) )
12241224 ) ;
12251225 assert ! ( matches!(
12261226 node_result. result,
@@ -1438,9 +1438,9 @@ mod tests {
14381438 "rest::control::respond" ,
14391439 vec ! [
14401440 literal_param( 1 , "http_status_code" , int_value( 200 ) ) ,
1441- literal_param( 2 , "headers" , empty_struct_value( ) ) ,
14421441 literal_param( 3 , "http_schema" , string_value( "text/plain" ) ) ,
14431442 literal_param( 4 , "payload" , string_value( "20" ) ) ,
1443+ literal_param( 2 , "headers" , empty_struct_value( ) ) ,
14441444 ] ,
14451445 None ,
14461446 ) ;
@@ -1480,6 +1480,7 @@ mod tests {
14801480 fields. insert( "http_status_code" . to_string( ) , int_value( 200 ) ) ;
14811481 fields. insert( "headers" . to_string( ) , empty_struct_value( ) ) ;
14821482 fields. insert( "payload" . to_string( ) , string_value( "20" ) ) ;
1483+ fields. insert( "http_schema" . to_string( ) , string_value( "text/plain" ) ) ;
14831484 Value {
14841485 kind: Some ( Kind :: StructValue ( Struct { fields } ) ) ,
14851486 }
@@ -1581,9 +1582,9 @@ mod tests {
15811582 "rest::control::respond" ,
15821583 vec ! [
15831584 literal_param( 100 , "http_status_code" , int_value( 200 ) ) ,
1584- literal_param( 101 , "headers" , empty_struct_value( ) ) ,
15851585 literal_param( 102 , "http_schema" , string_value( "application/json" ) ) ,
15861586 literal_param( 103 , "payload" , string_value( "hello" ) ) ,
1587+ literal_param( 101 , "headers" , empty_struct_value( ) ) ,
15871588 ] ,
15881589 Some ( 2 ) ,
15891590 ) ;
0 commit comments