Skip to content

Commit eb448b8

Browse files
committed
chore: allow tests to run with different profiles
Signed-off-by: mrizzi <mrizzi@redhat.com>
1 parent 077d707 commit eb448b8

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ jobs:
3535
- name: Check
3636
run: cargo check
3737
- name: Test
38-
run: cargo test -r
38+
run: cargo test

tests/integration_test.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ use trustify_test_context::subset::ContainsSubset;
55
#[test]
66
fn tools_list() {
77
let output = Command::new("sh").arg("-c").arg("npx @modelcontextprotocol/inspector --cli --config ./tests/mcp-inspector-tests-config.json --server trustify-stdio --method tools/list")
8+
// set timeouts (in milliseconds) in order to allow the `cargo run` from mcp-inspector-tests-config.json to run successfully
9+
.env("MCP_SERVER_REQUEST_TIMEOUT", "120000")
10+
.env("MCP_REQUEST_MAX_TOTAL_TIMEOUT", "120000")
811
.output()
912
.expect("failed to execute process");
1013

tests/mcp-inspector-tests-config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"mcpServers": {
33
"trustify-stdio": {
4-
"command": "./target/release/stdio",
5-
"args": [],
4+
"command": "cargo",
5+
"args": ["run", "-rq", "--bin", "stdio"],
66
"env": {
77
"API_URL": "",
88
"OPENID_ISSUER_URL": "",

0 commit comments

Comments
 (0)