Closed AI-Mozi closed 8 months ago
We will need to figure out a way to test that masscan
is being executed, without actually executing the command, because 1) it requires root
and 2) GitHub probably wouldn't like us port scanning from within GitHub Actions. :laughing:
Ah ha! Simply do expect(Kernel).to receive(:system).with(['masscan', ...]).and_return(true)
, or .and_return(false)
for a simulated failure.
1