From f80d50c27b5c30c1a2b8a761325588b73c3c2a65 Mon Sep 17 00:00:00 2001 From: Sudo-Ivan Date: Fri, 2 Jan 2026 17:47:34 -0600 Subject: [PATCH] refactor(tests): clean up whitespace in TestTransportLeak function --- pkg/transport/leak_test.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkg/transport/leak_test.go b/pkg/transport/leak_test.go index 025b32d..f8f09f6 100644 --- a/pkg/transport/leak_test.go +++ b/pkg/transport/leak_test.go @@ -16,7 +16,7 @@ func TestTransportLeak(t *testing.T) { baseline := runtime.NumGoroutine() cfg := &common.ReticulumConfig{} - + // Create and close many transport instances for i := 0; i < 100; i++ { tr := NewTransport(cfg) @@ -28,13 +28,12 @@ func TestTransportLeak(t *testing.T) { // Wait for goroutines to finish time.Sleep(100 * time.Millisecond) runtime.GC() - + final := runtime.NumGoroutine() - - // We allow a small margin for other system goroutines, + + // We allow a small margin for other system goroutines, // but 100 leaks would be very obvious. if final > baseline+5 { t.Errorf("Potential goroutine leak: baseline %d, final %d", baseline, final) } } -