implement a string representation of the version number

This will be useful as soon as we start supporting non-gQUIC versions.
This commit is contained in:
Marten Seemann
2017-09-27 11:39:12 +07:00
parent 79c176692e
commit 6dde979f8f
12 changed files with 39 additions and 12 deletions

View File

@@ -88,7 +88,7 @@ var _ = Describe("Random RTT", func() {
for i := range protocol.SupportedVersions {
version := protocol.SupportedVersions[i]
Context(fmt.Sprintf("with quic version %d", version), func() {
Context(fmt.Sprintf("with QUIC version %s", version), func() {
It("gets a file a random RTT between 10ms and 30ms", func() {
runRTTTest(10*time.Millisecond, 30*time.Millisecond, version)
})