fix(tests): Fix edge cases in test file migration

This commit is contained in:
2026-02-10 13:03:32 -05:00
parent 6c610465eb
commit 5b32b59781
4 changed files with 43 additions and 47 deletions
+3 -2
View File
@@ -18,7 +18,8 @@ func TestGoroutineCleanup(t *testing.T) {
t.Logf("Initial goroutine count: %d", initialGoroutines)
// Start server
setup := setupTestServer(t)
setup := setupTestServer(t)
defer setup.Close()
// Wait for startup
time.Sleep(200 * time.Millisecond)
@@ -26,7 +27,7 @@ func TestGoroutineCleanup(t *testing.T) {
t.Logf("Goroutines while running: %d (delta: +%d)", runningGoroutines, runningGoroutines-initialGoroutines)
// Close server
ts.Close()
setup.Close()
// Wait for cleanup
time.Sleep(500 * time.Millisecond)