Skip to content
This repository was archived by the owner on Jul 16, 2026. It is now read-only.

fix: make mock_ngx.lua Lua 5.1/LuaJIT-compatible (fixes #2) - #3

Merged
levleontiev merged 1 commit into
mainfrom
fix/2-mock-ngx-compat
Mar 8, 2026
Merged

fix: make mock_ngx.lua Lua 5.1/LuaJIT-compatible (fixes #2)#3
levleontiev merged 1 commit into
mainfrom
fix/2-mock-ngx-compat

Conversation

@levleontiev

Copy link
Copy Markdown
Contributor

This PR replaces the Lua 5.3+ bitwise XOR operator ~ with bit.bxor (with a safe fallback) in spec/helpers/mock_ngx.lua to ensure the test suite can be loaded and run in Lua 5.1/LuaJIT environments.

Verification:

  • All 52 unit tests passed.
  • All 58 integration tests passed.
  • All 31 e2e tests passed.

Replace Lua 5.3+ bitwise XOR operator ~ with bit.bxor and add safe fallback.
@levleontiev
levleontiev merged commit 9926ae6 into main Mar 8, 2026
7 checks passed
@levleontiev
levleontiev deleted the fix/2-mock-ngx-compat branch March 8, 2026 18:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant