From f029b08ba9b98fdd4599c03fee8ef98d07760ad2 Mon Sep 17 00:00:00 2001 From: i343759 Date: Fri, 14 Aug 2026 12:16:54 +0300 Subject: [PATCH] Increase NLTK test timeout to fix flaky test The NLTK corpus test can take longer than the default 10s timeout on first request when loading corpus data. Increase to 30s to prevent intermittent failures. --- src/python/integration/miscellaneous_test.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/python/integration/miscellaneous_test.go b/src/python/integration/miscellaneous_test.go index a678b14d1..21348e62b 100644 --- a/src/python/integration/miscellaneous_test.go +++ b/src/python/integration/miscellaneous_test.go @@ -1,11 +1,13 @@ package integration_test import ( - "github.com/cloudfoundry/switchblade" - "github.com/sclevine/spec" "os" "path/filepath" "testing" + "time" + + "github.com/cloudfoundry/switchblade" + "github.com/sclevine/spec" . "github.com/cloudfoundry/switchblade/matchers" . "github.com/onsi/gomega" @@ -48,7 +50,7 @@ func testMiscellaneous(platform switchblade.Platform, fixtures string) func(*tes Execute(name, source) Expect(err).NotTo(HaveOccurred()) - Eventually(deployment).Should(Serve(ContainSubstring("The Fulton County Grand Jury said Friday an investigation of Atlanta's recent primary election produced"))) + Eventually(deployment, 30*time.Second).Should(Serve(ContainSubstring("The Fulton County Grand Jury said Friday an investigation of Atlanta's recent primary election produced"))) Expect(logs.String()).To(SatisfyAll( ContainSubstring("Downloading NLTK packages: brown"),