fix: test timeout on slow machines (#340)

Fix test timeout on slow machines by extend testing timeout
to 20 secs.

Fixes: #337

Signed-off-by: Jongmin Kim <jmkim@pukyong.ac.kr>
This commit is contained in:
Jongmin Kim
2021-09-27 19:38:29 +09:00
committed by GitHub
parent 08d7b51940
commit 67c8da69a8

View File

@@ -11,7 +11,7 @@ import (
func tt(t *testing.T, arguments ...func()) {
halt := errors.New("A test was taking too long")
timer := time.AfterFunc(2*time.Second, func() {
timer := time.AfterFunc(20*time.Second, func() {
panic(halt)
})
defer func() {