From 69b4a6f99a4da1eadbae89476c8b4a1391eed870 Mon Sep 17 00:00:00 2001 From: Davor Kapsa Date: Wed, 20 Sep 2017 08:06:46 +0200 Subject: [PATCH 1/2] travis: update go versions As discussed at https://github.com/Shopify/sarama/pull/950. --- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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: From 5c2219768ab343e8ecfc1cd0b73e8004c422dee9 Mon Sep 17 00:00:00 2001 From: Davor Kapsa Date: Wed, 20 Sep 2017 15:55:17 +0200 Subject: [PATCH 2/2] fix TestMessageEncoding --- message_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)