fix(e2e): skip soak test on auth failure instead of failing

This commit is contained in:
zarazaex69
2026-05-26 02:54:14 +03:00
parent 10c7c655b6
commit b9b8c8137e

View File

@@ -2,9 +2,12 @@ package e2e
import (
"context"
"errors"
"flag"
"testing"
"time"
enginebuiltin "github.com/openlibrecommunity/olcrtc/internal/engine/builtin"
)
// Real-carrier throughput soak: same pump as TestLocalThroughputSoak but
@@ -112,6 +115,9 @@ func runRealSoakOnce(t *testing.T, carrierName, transportName, roomURL, echoAddr
rt, err := startRealTunnel(ctx, t, carrierName, transportName, roomURL, testClientDeviceID, testClientDeviceID)
if err != nil {
if errors.Is(err, enginebuiltin.ErrAuthFailed) {
t.Skipf("auth failed (skip): %v", err)
}
if expectation == realE2EExpectUnstable || expectation == realE2EExpectFail {
t.Skipf("start tunnel failed (expected %s): %v", realE2EExpectationLabel(expectation), err)
}