mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-02-18 00:17:39 +01:00
fix(test): add graceful shutdown wait to TestRunServer_WebSocket
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user