Skip to content

Commit 6d1ceca

Browse files
committed
add ports to the test running command
1 parent e940ede commit 6d1ceca

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/cicd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
run: lsof -i -P -n | grep LISTEN || true
4141

4242
- name: Run the test suite
43-
run: bundle exec rake
43+
run: PORT1=$PORT1 PORT2=$PORT2 PORT3=$PORT3 bundle exec rake
4444
env:
4545
PORT1: ${{ env.PORT1 }}
4646
PORT2: ${{ env.PORT2 }}

spec/support/test_server_manager.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,9 @@ class << self
3535
attr_accessor :stdio_server_pid, :http_server_pid, :sse_server_pid, :pagination_server_pid
3636

3737
def start_server
38-
RubyLLM::MCP.logger.info("Starting test servers with ports: #{ENV.fetch('PORT1',
39-
3005)}, #{ENV.fetch('PORT2',
40-
3006)}, #{ENV.fetch(
41-
'PORT3', 3007
42-
)}")
38+
puts "Starting test servers with ports: #{ENV.fetch('PORT1',
39+
3005)}, #{ENV.fetch('PORT2',
40+
3006)}, #{ENV.fetch('PORT3', 3007)}"
4341
return if stdio_server_pid && http_server_pid && pagination_server_pid
4442

4543
begin

0 commit comments

Comments
 (0)