Skip to content

Commit

Permalink
test: enable one more test after not having a global instance
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Jan 17, 2025
1 parent 3f0d86a commit c7be980
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modules/analysis/src/endpoints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,15 +302,13 @@ mod test {
Ok(())
}

// TODO: this test passes when run individually.
#[test_context(TrustifyContext)]
#[test(actix_web::test)]
#[ignore]
async fn test_status_endpoint(ctx: &TrustifyContext) -> Result<(), anyhow::Error> {
let app = caller(ctx).await?;
ctx.ingest_documents(["spdx/simple.json"]).await?;

//prime the graph hashmap
// prime the graph hashmap
let uri = "/api/v2/analysis/root-component?q=BB";
let load1 = TestRequest::get().uri(uri).to_request();
let _response: Value = app.call_and_read_body_json(load1).await;
Expand Down

0 comments on commit c7be980

Please sign in to comment.