Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/ruby/integration/default_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ func testDefault(platform switchblade.Platform, fixtures string) func(*testing.T
var err error
name, err = switchblade.RandomName()
Expect(err).NotTo(HaveOccurred())
println(name)
})

it.After(func() {
Expand Down Expand Up @@ -113,7 +114,9 @@ func testDefault(platform switchblade.Platform, fixtures string) func(*testing.T
Expect(err).NotTo(HaveOccurred())

Expect(logs).To(ContainLines(MatchRegexp(`Installing jruby \d+\.\d+\.\d+\.\d+`)))
Eventually(deployment, 1*time.Minute, 1*time.Second).Should(Serve(ContainSubstring("jruby 3.1.4")).WithEndpoint("/ruby"), logs.String())
// JRuby needs extra time to warm up after health check passes
// Increase timeout to 3 minutes with 2-second intervals for CI environments
Eventually(deployment, 3*time.Minute, 2*time.Second).Should(Serve(ContainSubstring("jruby 3.1.4")).WithEndpoint("/ruby"), logs.String())
})
})
}
Expand Down
Loading