Skip to content

Commit 2854661

Browse files
committed
Update JRuby test fixture for Ruby 3.1.7
JRuby 9.4.14.0 implements Ruby 3.1.7 (not 3.1.4). Updated test fixture and expectations to match the correct Ruby version.
1 parent 7d59651 commit 2854661

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

fixtures/default/sinatra_jruby/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
source 'https://rubygems.org'
22

3-
ruby '3.1.4', :engine => 'jruby', :engine_version => '9.4.14.0'
3+
ruby '3.1.7', :engine => 'jruby', :engine_version => '9.4.14.0'
44

55
gem 'rackup'
66
gem 'sinatra'

fixtures/default/sinatra_jruby/Gemfile.lock

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,18 @@ GEM
2727
webrick (1.9.2)
2828

2929
PLATFORMS
30+
java
3031
universal-java-1.8
3132
universal-java-25
33+
universal-java-8
3234

3335
DEPENDENCIES
3436
rackup
3537
sinatra
3638
webrick
3739

3840
RUBY VERSION
39-
ruby 3.1.4p0 (jruby 9.4.8.0)
41+
ruby 3.1.7p0 (jruby 9.4.14.0)
4042

4143
BUNDLED WITH
42-
2.3.26
44+
2.6.3

src/ruby/integration/default_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func testDefault(platform switchblade.Platform, fixtures string) func(*testing.T
118118
Expect(logs).To(ContainLines(MatchRegexp(`Installing jruby \d+\.\d+\.\d+\.\d+`)))
119119
// JRuby needs extra time to warm up after health check passes
120120
// Increase timeout to 3 minutes with 2-second intervals for CI environments
121-
Eventually(deployment, 3*time.Minute, 2*time.Second).Should(Serve(ContainSubstring("jruby 3.1.4")).WithEndpoint("/ruby"), logs.String())
121+
Eventually(deployment, 3*time.Minute, 2*time.Second).Should(Serve(ContainSubstring("jruby 3.1.7")).WithEndpoint("/ruby"), logs.String())
122122
})
123123
})
124124
}

0 commit comments

Comments
 (0)