remove unneeded optimization in the benchmark test

It's not needed anymore since github.com/onsi/gomega/pull/225
was merged.
This commit is contained in:
Marten Seemann
2017-09-14 12:32:38 +07:00
parent 34996e2a29
commit fb294e841a

View File

@@ -65,8 +65,7 @@ func init() {
_, err := io.Copy(buf, str)
Expect(err).NotTo(HaveOccurred())
})
// this is *a lot* faster than Expect(buf.Bytes()).To(Equal(data))
Expect(bytes.Equal(buf.Bytes(), data)).To(BeTrue())
Expect(buf.Bytes()).To(Equal(data))
b.RecordValue("transfer rate [MB/s]", float64(dataLen)/1e6/runtime.Seconds())