Skip to content

Commit

Permalink
pkg/tlsutil/cipher_suites_test.go: Skip checking on newer go versions
Browse files Browse the repository at this point in the history
  • Loading branch information
lilic committed Apr 14, 2021
1 parent f6f929d commit 4cdce57
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/tlsutil/cipher_suites_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,18 @@ package tlsutil
import (
"go/importer"
"reflect"
"runtime"
"strings"
"testing"
)

func TestGetCipherSuites(t *testing.T) {
// Skip check if newer version is detected.
// This is a workaround to ensure only intersection of ciphers
// are supported.
if runtime.Version() > "go1.12.2" {
t.Skip("skipping test for newer go versions.")
}
pkg, err := importer.For("source", nil).Import("crypto/tls")
if err != nil {
t.Fatal(err)
Expand Down

0 comments on commit 4cdce57

Please sign in to comment.