Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

refactor: use strconv.Itoa instead of string(rune()) in test

rcourtman6619dc803e2e
diff --git a/internal/websocket/hub_concurrency_test.go b/internal/websocket/hub_concurrency_test.go
index ecc6a520ce..6db9570d81 100644
--- a/internal/websocket/hub_concurrency_test.go
+++ b/internal/websocket/hub_concurrency_test.go
@@ -1,6 +1,7 @@
package websocket
import (
+ "strconv"
"sync"
"testing"
"time"
@@ -24,7 +25,7 @@ func TestHubConcurrentClients(t *testing.T) {
client := &Client{
hub: hub,
send: make(chan []byte, 10),
- id: "client-register-" + string(rune(i)),
+ id: "client-register-" + strconv.Itoa(i),
}
hub.register <- client
time.Sleep(time.Microsecond)