Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ssddOnTop committed Oct 5, 2024
1 parent 2eb3aa6 commit 040fde4
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tests/jit_spec.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
#[cfg(test)]
mod tests {
use std::sync::Arc;
use async_graphql::Pos;

use async_graphql::Pos;
use async_graphql_value::ConstValue;
use tailcall::core::app_context::AppContext;
use tailcall::core::blueprint::Blueprint;
use tailcall::core::config::{Config, ConfigModule};
use tailcall::core::http::RequestContext;
use tailcall::core::jit::{BuildError, ConstValueExecutor, Error, Positioned, Request, ResolveInputError, Response};
use tailcall::core::jit::{
BuildError, ConstValueExecutor, Error, Positioned, Request, ResolveInputError, Response,
};
use tailcall::core::rest::EndpointSet;
use tailcall::core::valid::Validator;

Expand Down Expand Up @@ -169,9 +171,12 @@ mod tests {
let executor = TestExecutor::try_new().await.unwrap();

let resp = executor.run(request).await.unwrap();
let errs = vec![Positioned::new(Error::BuildError(BuildError::ResolveInputError(
let errs = vec![Positioned::new(
Error::BuildError(BuildError::ResolveInputError(
ResolveInputError::VariableIsNotFound("id".to_string()),
)), Pos::default().into())];
)),
Pos::default().into(),
)];
assert_eq!(format!("{:?}", resp.errors), format!("{:?}", errs));

let request = Request::new(query);
Expand Down

1 comment on commit 040fde4

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running 30s test @ http://localhost:8000/graphql

4 threads and 100 connections

Thread Stats Avg Stdev Max +/- Stdev
Latency 4.96ms 2.28ms 41.32ms 78.45%
Req/Sec 5.14k 602.23 5.95k 94.25%

614698 requests in 30.04s, 786.87MB read

Requests/sec: 20461.62

Transfer/sec: 26.19MB

Please sign in to comment.