Skip to content

Commit

Permalink
correct the config
Browse files Browse the repository at this point in the history
  • Loading branch information
webbdays committed Jun 2, 2024
1 parent f069ee2 commit de27771
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
source: tests/core/spec.rs
expression: merged
expression: formatter
---
schema @server @upstream @link(src: "test.js", type: Script) {
schema @server @upstream(onRequest: "onRequest") @link(src: "test.js", type: Script) {
query: Query
}

Expand Down
4 changes: 2 additions & 2 deletions tests/core/snapshots/test-js-request-response.md_merged.snap
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
source: tests/core/spec.rs
expression: merged
expression: formatter
---
schema @server @upstream @link(src: "test.js", type: Script) {
schema @server @upstream(onRequest: "onRequest") @link(src: "test.js", type: Script) {
query: Query
}

Expand Down
2 changes: 1 addition & 1 deletion tests/execution/test-js-request-response-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function onRequest({request}) {
```

```graphql @config
schema @server @link(type: Script, src: "test.js") {
schema @server @upstream(onRequest:"onRequest") @link(type: Script, src: "test.js") {
query: Query
}

Expand Down
2 changes: 1 addition & 1 deletion tests/execution/test-js-request-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function onRequest({request}) {
```

```graphql @config
schema @server @link(type: Script, src: "test.js") {
schema @server @upstream(onRequest: "onRequest") @link(type: Script, src: "test.js") {
query: Query
}

Expand Down

1 comment on commit de27771

@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 6.66ms 3.08ms 147.18ms 73.75%
Req/Sec 3.80k 214.78 4.11k 94.33%

453984 requests in 30.01s, 2.28GB read

Requests/sec: 15129.21

Transfer/sec: 77.65MB

Please sign in to comment.