File: 01-Avoid_test_timeout.patch

package info (click to toggle)
mtail 3.0.0~rc24.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 6,944 kB
  • sloc: yacc: 530; makefile: 181; sh: 141; lisp: 77; awk: 17
file content (12 lines) | stat: -rw-r--r-- 382 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
Description: Patch a test that might timeout under load.
--- a/internal/mtail/mtail_test.go
+++ b/internal/mtail/mtail_test.go
@@ -108,7 +108,7 @@
 
 	ok, err = doOrTimeout(func() (bool, error) {
 		return true, nil
-	}, 10*time.Millisecond, time.Millisecond)
+	}, 100*time.Millisecond, time.Millisecond)
 	if !ok || err != nil {
 		t.Errorf("Expected OK, got %v, %v", ok, err)
 	}