Fix flakey GenericParserTest (#1956)

The 10ms timeout will fail on slower machines.
This commit is contained in:
Daniel Chao authored and GitHub committed 2026-11-03 10:06:18 -08:00
1 parent ffd8a5d484
commit 56e178934a
1 file changed
+2 -1
@@ -42,6 +42,7 @@ class GenericParserTest {
result = a(a < a(a < a(a < a(a < a(a < a(a < a(a < a(a < a(a < 1)))))))))
"""
.trimIndent()
assertTimeoutPreemptively(Duration.ofMillis(10)) { GenericParser().parseModule(code) }
// 1 second should still catch if we see exponential regressions
assertTimeoutPreemptively(Duration.ofSeconds(1)) { GenericParser().parseModule(code) }
}
}