chore(ci): fix random data race failure on source/node test

This commit is contained in:
Michel Loiseleur 2025-04-09 09:21:02 +02:00
parent 5eeef23b1d
commit bb5185966c

View File

@ -395,9 +395,7 @@ func testNodeSourceEndpoints(t *testing.T) {
tc := tc
t.Run(tc.title, func(t *testing.T) {
var buf *bytes.Buffer
if len(tc.expectedLogs) == 0 && len(tc.expectedAbsentLogs) == 0 {
t.Parallel()
} else {
if len(tc.expectedLogs) != 0 || len(tc.expectedAbsentLogs) != 0 {
buf = testutils.LogsToBuffer(log.DebugLevel, t)
}