From f82a6a74b51d1c6f9ea2c3880bc9e6f14111bcd9 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Sun, 11 Aug 2019 19:18:16 +0700 Subject: [PATCH] reduce the data size transfered in the mutliplex integration test --- integrationtests/self/multiplex_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/integrationtests/self/multiplex_test.go b/integrationtests/self/multiplex_test.go index 3657f007..0b7728d9 100644 --- a/integrationtests/self/multiplex_test.go +++ b/integrationtests/self/multiplex_test.go @@ -35,7 +35,7 @@ var _ = Describe("Multiplexing", func() { str, err := sess.OpenStream() Expect(err).ToNot(HaveOccurred()) defer str.Close() - _, err = str.Write(testserver.PRDataLong) + _, err = str.Write(testserver.PRData) Expect(err).ToNot(HaveOccurred()) }() } @@ -51,11 +51,12 @@ var _ = Describe("Multiplexing", func() { &quic.Config{Versions: []protocol.VersionNumber{version}}, ) Expect(err).ToNot(HaveOccurred()) + defer sess.Close() str, err := sess.AcceptStream(context.Background()) Expect(err).ToNot(HaveOccurred()) data, err := ioutil.ReadAll(str) Expect(err).ToNot(HaveOccurred()) - Expect(data).To(Equal(testserver.PRDataLong)) + Expect(data).To(Equal(testserver.PRData)) } Context("multiplexing clients on the same conn", func() {