Files
tg-ws-proxy-go/src/types_test.go
2026-07-01 21:38:18 +03:00

18 lines
312 B
Go

package main
import (
"strings"
"sync/atomic"
"testing"
)
func TestStatsSummaryIncludesFrontingConnections(t *testing.T) {
var s Stats
atomic.AddInt64(&s.connectionsFront, 3)
got := s.summary()
if !strings.Contains(got, "front=3") {
t.Fatalf("summary %q does not include fronting counter", got)
}
}