Skip to content

Commit

Permalink
Merge pull request #684 from hermya/master
Browse files Browse the repository at this point in the history
Fixed flaky test-case: ConsumerJsonRecordTest.should_serialize_a_record_with_headers
  • Loading branch information
nirmalchandra authored Oct 8, 2024
2 parents f52682f + 320b74e commit a47a627
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import org.junit.Test;

import java.io.IOException;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;

import static org.hamcrest.MatcherAssert.assertThat;
Expand Down Expand Up @@ -49,7 +49,7 @@ public void should_serialize_a_record_with_headers() throws JsonProcessingExcept
// given
JsonNode key = objectMapper.readTree("123");
JsonNode value = objectMapper.readTree("\"val\"");
Map<String, String> headers = new HashMap<>();
Map<String, String> headers = new LinkedHashMap<>();
headers.put("hKey", "hValue");
headers.put("hKeyWithNullValue", null);
ConsumerJsonRecord record = new ConsumerJsonRecord(key, value, headers);
Expand Down

0 comments on commit a47a627

Please sign in to comment.