fix(tests): Fix edge cases in test file migration
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user