diff --git a/deps/rabbitmq_cli/test/core/json_stream_test.exs b/deps/rabbitmq_cli/test/core/json_stream_test.exs index 16558bd74da3..00b1c7b936da 100644 --- a/deps/rabbitmq_cli/test/core/json_stream_test.exs +++ b/deps/rabbitmq_cli/test/core/json_stream_test.exs @@ -18,7 +18,9 @@ defmodule JsonStreamTest do test "format_output map with binary keys is converted to JSON object" do assert @formatter.format_output(%{"a" => :apple, "b" => :beer}, %{}) == - "{\"a\":\"apple\",\"b\":\"beer\"}" + "{\"a\":\"apple\",\"b\":\"beer\"}" or + @formatter.format_output(%{"a" => :apple, "b" => :beer}, %{}) == + "{\"b\":\"beer\",\"a\":\"apple\"}" end test "format_output empty binary is converted to empty JSON array" do