From d64e40895bfb29405c911490b4af80996828e2b2 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Mon, 17 May 2021 09:05:08 -0700 Subject: [PATCH] simplify the qtls tests --- internal/qtls/go115_test.go | 20 ------------------- internal/qtls/{go116_test.go => qtls_test.go} | 2 -- 2 files changed, 22 deletions(-) delete mode 100644 internal/qtls/go115_test.go rename internal/qtls/{go116_test.go => qtls_test.go} (95%) diff --git a/internal/qtls/go115_test.go b/internal/qtls/go115_test.go deleted file mode 100644 index 7c7920aa5..000000000 --- a/internal/qtls/go115_test.go +++ /dev/null @@ -1,20 +0,0 @@ -// +build go1.15 -// +build !go1.16 - -package qtls - -import ( - "crypto/tls" - - . "github.com/onsi/ginkgo" - . "github.com/onsi/gomega" -) - -var _ = Describe("qtls wrapper", func() { - It("gets cipher suites", func() { - for _, id := range []uint16{tls.TLS_AES_128_GCM_SHA256, tls.TLS_AES_256_GCM_SHA384, tls.TLS_CHACHA20_POLY1305_SHA256} { - cs := CipherSuiteTLS13ByID(id) - Expect(cs.ID).To(Equal(id)) - } - }) -}) diff --git a/internal/qtls/go116_test.go b/internal/qtls/qtls_test.go similarity index 95% rename from internal/qtls/go116_test.go rename to internal/qtls/qtls_test.go index 2c1253a8f..c64c5e9ed 100644 --- a/internal/qtls/go116_test.go +++ b/internal/qtls/qtls_test.go @@ -1,5 +1,3 @@ -// +build go1.16 - package qtls import (