mirror of
https://github.com/cunnie/sslip.io.git
synced 2025-10-06 16:18:00 +08:00
Placate the linter
- check for errors when I was previously skipping them - use module `time` better Drive-by: Shorter way to copy the new `index.html` to the 5 servers.
This commit is contained in:
@@ -76,7 +76,7 @@ var _ = Describe("speed", func() {
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
Expect(bytesRead).To(Equal(52)) // The A record response "127.0.0.1" is 52 bytes
|
||||
}
|
||||
elapsedSeconds := time.Now().Sub(startTime).Seconds()
|
||||
elapsedSeconds := time.Since(startTime).Seconds()
|
||||
Eventually(serverSession.Err).Should(Say(`TypeA 127-0-0-1\.sslip\.io\. \? 127\.0\.0\.1`))
|
||||
//fmt.Fprintf(os.Stderr, "Queries/second: %.2f\n", float64(numQueries)/elapsedSeconds)
|
||||
Expect(float64(numQueries) / elapsedSeconds).Should(BeNumerically(">", minThroughput))
|
||||
|
Reference in New Issue
Block a user