Skip to content

Commit

Permalink
Fix flaky test assertions (apache#2640)
Browse files Browse the repository at this point in the history
in test TestResourceAssignmentOptimizerAccessor
#testComputePartitionAssignment
  • Loading branch information
simonh5 committed Oct 13, 2023
1 parent 915e414 commit 6e8eb21
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ public void testComputePartitionAssignment() throws IOException, JSONException {
MultivaluedMap<String, Object> headers2 = response2.getHeaders();
Assert
.assertTrue(headers2.containsKey(ResourceAssignmentOptimizerAccessor.RESPONSE_HEADER_KEY));
List partitionAssignmentMetadata2 = headers2.get(ResourceAssignmentOptimizerAccessor.RESPONSE_HEADER_KEY);
List partitionAssignmentMetadata2 =
headers2.get(ResourceAssignmentOptimizerAccessor.RESPONSE_HEADER_KEY);
Assert.assertFalse(
headers2.get(ResourceAssignmentOptimizerAccessor.RESPONSE_HEADER_KEY).isEmpty());
JSONAssert.assertEquals("{instanceFilter=[" + liveInstances.get(0) + ", " + liveInstances.get(1) + "], "
Expand Down

0 comments on commit 6e8eb21

Please sign in to comment.