Run gosimple on our tree

This commit is contained in:
Lucas Clemente
2017-06-06 09:33:46 +02:00
parent 2f551a7cbe
commit 4f93969101
2 changed files with 3 additions and 3 deletions

View File

@@ -58,7 +58,7 @@ var _ = Describe("Handshake integration tets", func() {
}
expectDurationInRTTs := func(num int) {
testDuration := time.Now().Sub(testStartedAt)
testDuration := time.Since(testStartedAt)
expectedDuration := time.Duration(num) * rtt
Expect(testDuration).To(SatisfyAll(
BeNumerically(">=", expectedDuration),

View File

@@ -906,7 +906,7 @@ var _ = Describe("Session", func() {
err := sess.sendPublicReset(1)
Expect(err).NotTo(HaveOccurred())
Expect(mconn.written).To(HaveLen(1))
Expect(mconn.written[0]).To(ContainSubstring(string([]byte("PRST"))))
Expect(mconn.written[0]).To(ContainSubstring("PRST"))
})
It("informs the SentPacketHandler about sent packets", func() {
@@ -1317,7 +1317,7 @@ var _ = Describe("Session", func() {
time.Sleep(10 * time.Millisecond) // wait for the run loop to spin up
sess.scheduleSending() // wake up the run loop
Eventually(func() [][]byte { return mconn.written }).Should(HaveLen(1))
Expect(mconn.written[0]).To(ContainSubstring(string([]byte("PRST"))))
Expect(mconn.written[0]).To(ContainSubstring("PRST"))
Eventually(sess.runClosed).Should(BeClosed())
})