From e15170bb152886513e27142a7ab236d3f1edfee1 Mon Sep 17 00:00:00 2001 From: zarazaex69 Date: Wed, 27 May 2026 13:09:16 +0300 Subject: [PATCH] chore(e2e): remove -race flag from E2e target --- magefile.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/magefile.go b/magefile.go index 99b20ad..775c087 100644 --- a/magefile.go +++ b/magefile.go @@ -204,8 +204,14 @@ func TestFull() error { // E2e runs the real-provider smoke matrix. // Configure via env: E2E_CARRIERS, E2E_TRANSPORTS, E2E_TIMEOUT, E2E_STRESS. +// +// Note: -race is intentionally NOT enabled here. The race detector adds +// significant CPU overhead and breaks timing-sensitive handshake tests +// against real networks (telemost/videochannel handshake regularly times +// out under -race). Race coverage for production code paths is provided +// by `mage testFull` against in-memory carriers. func E2e() error { - args := []string{"test", "-race", "-count=1", "-v", "-timeout", "30m", + args := []string{"test", "-count=1", "-v", "-timeout", "30m", "./internal/e2e/...", "-olcrtc.real-e2e=true", }