From a8c71f5d69736806e577d0ff239d608077311fae Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Fri, 16 Mar 2018 13:26:10 +0100 Subject: [PATCH] fix incorrect server test When a Read from the connection fails, we need to close all sessions, but it's not necessary to remove them from the sessions map in the server. --- server_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/server_test.go b/server_test.go index 78330811e..f93af3339 100644 --- a/server_test.go +++ b/server_test.go @@ -357,7 +357,6 @@ var _ = Describe("Server", func() { testErr := errors.New("connection error") conn.readErr = testErr go serv.serve() - Eventually(func() Session { return serv.sessions[connID] }).Should(BeNil()) Eventually(func() bool { return session.(*mockSession).closed }).Should(BeTrue()) Expect(serv.Close()).To(Succeed()) })