-
Notifications
You must be signed in to change notification settings - Fork 164
Closed
Description
I've just recently started seeing this error:
1) test create_request correctly encodes messages with gzip (KafkaEx.Protocol.Produce.Test)
test/protocol/produce_test.exs:30
Assertion with == failed
code: assert expected_request == request
left: <<0, 0, 0, 0, 0, 0, 0, 1, 0, 23, 99, 111, 109, 112, 114, 101, 115,
115, 105, 111, 110, 95, 99, 108, 105, 101, 110, 116, 95, 116, 101,
115, 116, 0, 1, 0, 0, 0, 10, 0, 0, 0, 1, 0, 16, 99, 111, 109, 112,
114, ...>>
right: <<0, 0, 0, 0, 0, 0, 0, 1, 0, 23, 99, 111, 109, 112, 114, 101, 115,
115, 105, 111, 110, 95, 99, 108, 105, 101, 110, 116, 95, 116, 101,
115, 116, 0, 1, 0, 0, 0, 10, 0, 0, 0, 1, 0, 16, 99, 111, 109, 112,
114, ...>>
stacktrace:
test/protocol/produce_test.exs:47: (test)
I'm on macOS 10.13.1 with Erlang 20.1.7 from homebrew and elixir 1.5.2 from kiex. I'm not sure if this is an Elixir/OTP version problem or a mac problem. I just checked and we're not testing against 1.5.2/20.1 in Travis, which we should be doing. I'll open a PR to do that.
I did modify the test a bit to get it to tell me exactly which bytes were different:
[{85, 79, 90}, {86, 44, 216}, {87, 46, 47}, {88, 209, 42}, {108, 3, 19}]
The format of this is [{byte number, expected byte value, got byte value}]. The expected and got binaries are the same length.
Metadata
Metadata
Assignees
Labels
No labels