From c12918c287198128a7189e784ce5f30ff8b72d54 Mon Sep 17 00:00:00 2001 From: mo khan Date: Thu, 29 May 2025 15:44:39 -0600 Subject: chore: start sts server once before all tests --- bin/test | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bin/test b/bin/test index 3e35635..3d53f0e 100755 --- a/bin/test +++ b/bin/test @@ -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 -- cgit v1.2.3