Skip to content

Commit 3d2334b

Browse files
committed
revert security_test.go
1 parent 6f20a8a commit 3d2334b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

security_test.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"fmt"
1010
"path/filepath"
1111
"reflect"
12+
"runtime"
1213
"testing"
1314
"time"
1415
)
@@ -198,8 +199,10 @@ func TestParseSecurityDirectory(t *testing.T) {
198199
if expected.SignatureValid != cert.SignatureValid {
199200
t.Fatalf("signature verification %d failed, cert %v, want %v", i, cert.SignatureValid, expected.SignatureValid)
200201
}
201-
if expected.Verified != cert.Verified {
202-
t.Fatalf("certificate verification %d failed, cert %v, want %v", i, cert.Verified, expected.Verified)
202+
if runtime.GOOS == "linux" {
203+
if expected.Verified != cert.Verified {
204+
t.Fatalf("certificate verification %d failed, cert %v, want %v", i, cert.Verified, expected.Verified)
205+
}
203206
}
204207

205208
}

0 commit comments

Comments
 (0)