File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ func TestPktInfo(t *testing.T) {
132
132
for _ , test := range testcases {
133
133
t .Run (test .network , func (t * testing.T ) {
134
134
conn , err := net .ListenUDP (test .network , test .address )
135
- if errors .Is (err , unix .EADDRNOTAVAIL ) {
135
+ if errors .Is (err , unix .EADDRNOTAVAIL ) || errors . Is ( err , unix . EAFNOSUPPORT ) {
136
136
t .Skipf ("%v is not available" , test .address )
137
137
}
138
138
if err != nil {
@@ -208,7 +208,7 @@ func TestParseOrigDstAddr(t *testing.T) {
208
208
for _ , test := range testcases {
209
209
t .Run (test .network , func (t * testing.T ) {
210
210
conn , err := net .ListenUDP (test .network , test .address )
211
- if errors .Is (err , unix .EADDRNOTAVAIL ) {
211
+ if errors .Is (err , unix .EADDRNOTAVAIL ) || errors . Is ( err , unix . EAFNOSUPPORT ) {
212
212
t .Skipf ("%v is not available" , test .address )
213
213
}
214
214
if err != nil {
You can’t perform that action at this time.
0 commit comments