Skip to content

Commit 752bfe2

Browse files
committed
debug tests
1 parent 47675cd commit 752bfe2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

graph/src/data/subgraph/status.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
//! Support for the indexing status API
22
3+
use juniper::GraphQLObject;
4+
35
use super::schema::{SubgraphError, SubgraphHealth};
46
use crate::blockchain::BlockHash;
57
use crate::components::store::{BlockNumber, DeploymentId};

server/http/src/test_utils.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@ use hyper::{header::ACCESS_CONTROL_ALLOW_ORIGIN, Body, Response};
77
pub fn assert_successful_response(
88
response: Response<Body>,
99
) -> serde_json::Map<String, serde_json::Value> {
10-
assert_eq!(response.status(), StatusCode::OK);
10+
// assert_eq!(response.status(), StatusCode::OK);
1111
assert_expected_headers(&response);
1212
futures03::executor::block_on(
1313
hyper::body::to_bytes(response.into_body())
1414
.map_ok(|chunk| {
1515
let json: serde_json::Value =
1616
serde_json::from_slice(&chunk).expect("GraphQL response is not valid JSON");
1717

18+
println!("{:?}", json);
1819
json.as_object()
1920
.expect("GraphQL response must be an object")
2021
.get("data")

0 commit comments

Comments
 (0)