Skip to content

Commit

Permalink
fix TestMessageEncoding
Browse files Browse the repository at this point in the history
  • Loading branch information
dvrkps authored Sep 20, 2017
1 parent 69b4a6f commit 5c22197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5c22197

Please sign in to comment.