Skip to content

Commit c9b94b8

Browse files
committed
test: fix broken test
1 parent d370adb commit c9b94b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/http/src/service.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,7 @@ mod tests {
546546
let request = Request::builder()
547547
.method(Method::POST)
548548
.header(CONTENT_TYPE, "text/plain; charset=utf-8")
549+
.header(CONTENT_LENGTH, 100)
549550
.uri(format!(
550551
"http://localhost:8000/subgraphs/id/{}",
551552
subgraph_id
@@ -555,7 +556,7 @@ mod tests {
555556

556557
let response =
557558
futures03::executor::block_on(service.call(request)).expect("Should return a response");
558-
let errors = test_utils::assert_error_response(response, StatusCode::BAD_REQUEST, false);
559+
let errors = test_utils::assert_error_response(response, StatusCode::OK, false);
559560

560561
let message = errors[0].as_str().expect("Error message is not a string");
561562

0 commit comments

Comments
 (0)