run gosimple in gometalinter

This commit is contained in:
Marten Seemann 2018-02-22 08:48:12 +08:00
parent 286a51bcc0
commit 81974d30d6
13 changed files with 23 additions and 24 deletions

View file

@ -483,7 +483,7 @@ var _ = Describe("Session", func() {
buf := &bytes.Buffer{}
err := (&wire.ConnectionCloseFrame{ErrorCode: qerr.PeerGoingAway}).Write(buf, sess.version)
Expect(err).ToNot(HaveOccurred())
Expect(mconn.written).To(Receive(ContainSubstring(string(buf.Bytes()))))
Expect(mconn.written).To(Receive(ContainSubstring(buf.String())))
Expect(sess.Context().Done()).To(BeClosed())
})