fix(ci): var shadowing and proper mocking

This commit is contained in:
Barrett Ruth 2025-09-21 12:34:54 -04:00
parent 36ef39479f
commit d96d810328

View file

@ -189,6 +189,10 @@ describe('cp.scrape', function()
return false
end
-- Force reload the scrape module to pick up the updated mock
package.loaded['cp.scrape'] = nil
scrape = require('cp.scrape')
vim.system = function(cmd)
if cmd[1] == 'ping' then
return {