diff options
| author | mo khan <mo@mokhan.ca> | 2025-05-29 15:44:39 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-05-29 15:44:39 -0600 |
| commit | c12918c287198128a7189e784ce5f30ff8b72d54 (patch) | |
| tree | 30db81c9a8f34cf0813bcf021b51996c743a1f0f | |
| parent | 0f19c35167269b275e6ec343dd6d77813d294a5b (diff) | |
chore: start sts server once before all tests
| -rwxr-xr-x | bin/test | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -7,6 +7,13 @@ gemfile do gem "net-hippie", "~> 1.0" end +pid = Process.spawn("cargo run") +sleep 1 + +at_exit do + system("killall sts") +end + require "minitest/autorun" class ServerTest < Minitest::Test @@ -15,13 +22,6 @@ class ServerTest < Minitest::Test def setup @base_url = "http://127.0.0.1:7878" @client = Net::Hippie::Client.new - pid = Process.spawn("cargo run") - sleep 1 - end - - def teardown - # Process.kill(-9, pid) - system("killall sts") end def test_homepage |
