fix(test): add graceful shutdown wait to TestRunServer_WebSocket

This commit is contained in:
rcourtman
2026-01-20 18:20:37 +00:00
parent eec4bcf33e
commit 9b8a79df93

View File

@@ -866,6 +866,11 @@ func TestRunServer_WebSocket(t *testing.T) {
t.Logf("WS Read Error: %v", err)
}
}
// Explicitly cancel and wait for server shutdown before test cleanup
// to avoid race condition where server writes files during temp dir removal
cancel()
time.Sleep(200 * time.Millisecond)
}
func TestRunServer_AllowedOrigins(t *testing.T) {