From 0b1d7c46f57b996ae938134f44045f674749b9e0 Mon Sep 17 00:00:00 2001 From: Lucas Clemente Date: Thu, 3 Aug 2017 20:49:08 +0200 Subject: [PATCH] Rename handshake/ to self/, will be the place for future quic-go self tests --- .../{handshake/rtt.go => self/handshake_rtt_test.go} | 5 +++-- integrationtests/self/self.go | 1 + .../self_suite_test.go} | 6 +++--- 3 files changed, 7 insertions(+), 5 deletions(-) rename integrationtests/{handshake/rtt.go => self/handshake_rtt_test.go} (98%) create mode 100644 integrationtests/self/self.go rename integrationtests/{handshake/handshaketests_suite_test.go => self/self_suite_test.go} (51%) diff --git a/integrationtests/handshake/rtt.go b/integrationtests/self/handshake_rtt_test.go similarity index 98% rename from integrationtests/handshake/rtt.go rename to integrationtests/self/handshake_rtt_test.go index 6a5d13be..66122ab0 100644 --- a/integrationtests/handshake/rtt.go +++ b/integrationtests/self/handshake_rtt_test.go @@ -1,4 +1,4 @@ -package handshaketests +package self_test import ( "crypto/tls" @@ -17,13 +17,14 @@ import ( . "github.com/onsi/gomega" ) -var _ = Describe("Handshake integration tets", func() { +var _ = Describe("Handshake RTT tests", func() { var ( proxy *quicproxy.QuicProxy server quic.Listener serverConfig *quic.Config testStartedAt time.Time ) + rtt := 400 * time.Millisecond BeforeEach(func() { diff --git a/integrationtests/self/self.go b/integrationtests/self/self.go new file mode 100644 index 00000000..51e34e22 --- /dev/null +++ b/integrationtests/self/self.go @@ -0,0 +1 @@ +package self diff --git a/integrationtests/handshake/handshaketests_suite_test.go b/integrationtests/self/self_suite_test.go similarity index 51% rename from integrationtests/handshake/handshaketests_suite_test.go rename to integrationtests/self/self_suite_test.go index 066e40dc..a6e0d4cd 100644 --- a/integrationtests/handshake/handshaketests_suite_test.go +++ b/integrationtests/self/self_suite_test.go @@ -1,4 +1,4 @@ -package handshaketests +package self_test import ( . "github.com/onsi/ginkgo" @@ -7,7 +7,7 @@ import ( "testing" ) -func TestHandshakes(t *testing.T) { +func TestSelf(t *testing.T) { RegisterFailHandler(Fail) - RunSpecs(t, "Handshake integration tests") + RunSpecs(t, "Self integration tests") }