Skip to content

Commit 77400f0

Browse files
committed
[FAB-3257] disable brittle goroutine check in CI test
The goroutine check (checks that goroutines are dead after each test) sometimes starts with the wrong number of goroutines and has a false-negative (i.e, started with 4 goroutines but has only 3 of them in the end of the test) so it fails the entire unit test run. I want to temporarily disable the test and investigate. Change-Id: Ic0b618c6c3437ec8cbe87400e7bd54fc0d74f2ca Signed-off-by: Yacov Manevich <[email protected]>
1 parent 4f94aab commit 77400f0

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

core/deliverservice/deliveryclient_test.go

+12-10
Original file line numberDiff line numberDiff line change
@@ -353,17 +353,19 @@ func assertBlockDissemination(expectedSeq uint64, ch chan uint64, t *testing.T)
353353
}
354354

355355
func ensureNoGoroutineLeak(t *testing.T) func() {
356-
goroutineCountAtStart := runtime.NumGoroutine()
356+
//goroutineCountAtStart := runtime.NumGoroutine()
357357
return func() {
358-
start := time.Now()
359-
timeLimit := start.Add(goRoutineTestWaitTimeout)
360-
for time.Now().Before(timeLimit) {
361-
time.Sleep(time.Millisecond * 500)
362-
if goroutineCountAtStart == runtime.NumGoroutine() {
363-
return
364-
}
365-
}
366-
assert.Equal(t, goroutineCountAtStart, runtime.NumGoroutine(), "Some goroutine(s) didn't finish: %s", getStackTrace())
358+
// Temporarily disabled, see FAB-3257 for progress
359+
/* start := time.Now()
360+
timeLimit := start.Add(goRoutineTestWaitTimeout)
361+
for time.Now().Before(timeLimit) {
362+
time.Sleep(time.Millisecond * 500)
363+
if goroutineCountAtStart == runtime.NumGoroutine() {
364+
fmt.Println(getStackTrace())
365+
return
366+
}
367+
}
368+
assert.Equal(t, goroutineCountAtStart, runtime.NumGoroutine(), "Some goroutine(s) didn't finish: %s", getStackTrace())*/
367369
}
368370
}
369371

0 commit comments

Comments
 (0)