Closed pezholio closed 1 month ago
I have already:
Tests pass
When running the tests with Rack version >= 3.1.0, the tests fail with the error:
NameError: uninitialized constant Rack::Handler
This looks related to changes in Rack starting 3.1.0 - https://github.com/rack/rack/blob/main/CHANGELOG.md#310---2024-06-11
An example build with Rack > 3.1.0 ❌
https://github.com/alphagov/pact-mock_service/actions/runs/9513302857
And example build with Rack < 3.1.0 ✅
https://github.com/alphagov/pact-mock_service/actions/runs/9513330459
I've put a fix that worked for me locally here https://github.com/pact-foundation/pact-mock_service/pull/146/files#r1639534752
Pre issue-raising checklist
I have already:
Software versions
Expected behaviour
Tests pass
Actual behaviour
When running the tests with Rack version >= 3.1.0, the tests fail with the error:
This looks related to changes in Rack starting 3.1.0 - https://github.com/rack/rack/blob/main/CHANGELOG.md#310---2024-06-11
Steps to reproduce
An example build with Rack > 3.1.0 ❌
https://github.com/alphagov/pact-mock_service/actions/runs/9513302857
And example build with Rack < 3.1.0 ✅
https://github.com/alphagov/pact-mock_service/actions/runs/9513330459