Skip to content

Commit 22af21b

Browse files
committed
Fix pinning of NodeJS 18 on Debian 12 in tests
1 parent f570e7c commit 22af21b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

spec/acceptance/class_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@
3434

3535
include_examples 'cleanup'
3636

37-
# Debian 12 contains NodeJS 18, when we test 16, we need to force the nodesource version
37+
# Debian 12 contains NodeJS 18, when we test 16 and 18, we need to force the nodesource version
38+
# as Debians versions *can* be newer
3839
repo_pin =
39-
if nodejs_version == '16' && fact('os.family') == 'Debian' && fact('os.release.major') == '12'
40+
if %w[16 18].include?(nodejs_version) && fact('os.family') == 'Debian' && fact('os.release.major') == '12'
4041
'1000'
4142
else
4243
'undef'

0 commit comments

Comments
 (0)