File tree Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -139,15 +139,15 @@ async fn h1_expect() {
139
139
140
140
// test expect would fail to continue
141
141
let request = srv
142
- . request ( http:: Method :: GET , srv. url ( "/" ) )
142
+ . request ( http:: Method :: POST , srv. url ( "/" ) )
143
143
. insert_header ( ( "Expect" , "100-continue" ) ) ;
144
144
145
145
let response = request. send_body ( "expect body" ) . await . unwrap ( ) ;
146
146
assert_eq ! ( response. status( ) , StatusCode :: EXPECTATION_FAILED ) ;
147
147
148
148
// test expect would continue
149
149
let request = srv
150
- . request ( http:: Method :: GET , srv. url ( "/" ) )
150
+ . request ( http:: Method :: POST , srv. url ( "/" ) )
151
151
. insert_header ( ( "Expect" , "100-continue" ) )
152
152
. insert_header ( ( "AUTH" , "996" ) ) ;
153
153
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ async fn h2_body() -> io::Result<()> {
118
118
} )
119
119
. await ;
120
120
121
- let response = srv. sget ( "/" ) . send_body ( data. clone ( ) ) . await . unwrap ( ) ;
121
+ let response = srv. spost ( "/" ) . send_body ( data. clone ( ) ) . await . unwrap ( ) ;
122
122
assert ! ( response. status( ) . is_success( ) ) ;
123
123
124
124
let body = srv. load_body ( response) . await . unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -184,7 +184,7 @@ async fn h2_body1() -> io::Result<()> {
184
184
} )
185
185
. await ;
186
186
187
- let response = srv. sget ( "/" ) . send_body ( data. clone ( ) ) . await . unwrap ( ) ;
187
+ let response = srv. spost ( "/" ) . send_body ( data. clone ( ) ) . await . unwrap ( ) ;
188
188
assert ! ( response. status( ) . is_success( ) ) ;
189
189
190
190
let body = srv. load_body ( response) . await . unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -66,7 +66,6 @@ async fn json() {
66
66
. insert_header ( ( "x-test" , "111" ) )
67
67
. send_json ( & "TEST" . to_string ( ) ) ;
68
68
let response = request. await . unwrap ( ) ;
69
- println ! ( "{response:?}" ) ;
70
69
assert ! ( response. status( ) . is_success( ) ) ;
71
70
}
72
71
You can’t perform that action at this time.
0 commit comments