From 56e178934aafce64567019dc4cc17b591dde89e6 Mon Sep 17 00:00:00 2001 From: Daniel Chao Date: Tue, 3 Nov 2026 10:06:18 -0800 Subject: [PATCH] Fix flakey GenericParserTest (#1956) The 10ms timeout will fail on slower machines. --- pkl-parser/src/test/kotlin/org/pkl/parser/GenericParserTest.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkl-parser/src/test/kotlin/org/pkl/parser/GenericParserTest.kt b/pkl-parser/src/test/kotlin/org/pkl/parser/GenericParserTest.kt index 016934355..9cffde9bf 100644 --- a/pkl-parser/src/test/kotlin/org/pkl/parser/GenericParserTest.kt +++ b/pkl-parser/src/test/kotlin/org/pkl/parser/GenericParserTest.kt @@ -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) } } }