diff --git a/.travis.yml b/.travis.yml index 04d399ece..68c41f380 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,8 @@ language: go go: -- 1.7.3 -- 1.8 +- 1.7.x +- 1.8.x +- 1.9.x env: global: diff --git a/message_test.go b/message_test.go index 03bb91044..630ad6e2a 100644 --- a/message_test.go +++ b/message_test.go @@ -107,7 +107,7 @@ func TestMessageEncoding(t *testing.T) { message.Value = []byte{} message.Codec = CompressionGZIP - if runtime.Version() == "go1.8" || strings.HasPrefix(runtime.Version(), "go1.8.") { + if strings.HasPrefix(runtime.Version(), "go1.8") || strings.HasPrefix(runtime.Version(), "go1.9") { testEncodable(t, "empty gzip", &message, emptyGzipMessage18) } else { testEncodable(t, "empty gzip", &message, emptyGzipMessage)