mirror of
https://github.com/postalserver/postal.git
synced 2026-10-18 10:17:22 +00:00
fix(specs): stub IPv6 support in address guard IPv6 literal spec
The spec relied on the test machine having real IPv6 connectivity, which GitHub Actions runners do not have.
This commit is contained in:
@@ -23,6 +23,8 @@ RSpec.describe Postal::HTTP::AddressGuard do
|
||||
context "when given a public IPv6 literal" do
|
||||
let(:host) { "2606:2800:220:1:248:1893:25c8:1946" }
|
||||
|
||||
before { allow(described_class).to receive(:ipv6_supported?).and_return(true) }
|
||||
|
||||
it "returns the address to connect to" do
|
||||
expect(call).to eq "2606:2800:220:1:248:1893:25c8:1946"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user