Skip to content

Commit ab7af24

Browse files
Avoid errors on unit tests
rebar3 is saying something about SSL, most likely because our tests are installing a bunch of OTPs which makes for unpredictable behavior
1 parent ee61944 commit ab7af24

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

test/setup-beam.test.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -936,18 +936,16 @@ describe('version file', () => {
936936
const otpVersion = unsimulateInput('otp-version')
937937
const elixirVersion = unsimulateInput('elixir-version')
938938
const gleamVersion = unsimulateInput('gleam-version')
939-
const rebar3Version = unsimulateInput('rebar3-version')
940939

941940
it('is parsed correctly', async () => {
942941
const erlang = '27'
943942
const elixir = '1.17.0'
944943
const gleam = '0.23.0'
945-
const rebar3 = '3.24.0'
946944
const toolVersions = `# a comment
947945
erlang ref:v${erlang}# comment, no space, and ref:v
948946
elixir ref:${elixir} # comment, with space and ref:
949947
not-gleam 0.23 # not picked up
950-
gleam ${gleam} \nrebar ${rebar3}`
948+
gleam ${gleam} \n`
951949
const filename = 'test/.tool-versions'
952950
fs.writeFileSync(filename, toolVersions)
953951
process.env.GITHUB_WORKSPACE = ''
@@ -972,15 +970,11 @@ gleam ${gleam} \nrebar ${rebar3}`
972970
assert.ok(async () => {
973971
await setupBeam.install('gleam', { toolVersion: gleam })
974972
})
975-
assert.ok(async () => {
976-
await setupBeam.install('rebar3', { toolVersion: rebar3 })
977-
})
978973
})
979974

980975
simulateInput('otp-version', otpVersion)
981976
simulateInput('elixir-version', elixirVersion)
982977
simulateInput('gleam-version', gleamVersion)
983-
simulateInput('rebar3-version', rebar3Version)
984978
})
985979

986980
describe('.get(_)', () => {

0 commit comments

Comments
 (0)