Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
zwangsheng committed Aug 9, 2023
1 parent a10b318 commit 26075c5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ public void testInitMemoryManagerWithInvalidConfig() {
Assert.fail("MemoryManager initialize should throw exception with invalid configuration");
} catch (IllegalArgumentException iae) {
Assert.assertEquals(
iae.getMessage(),
String.format(
"Invalid config, " + "{} should be greater than {}",
"Invalid config, {} should be greater than {}",
CelebornConf.WORKER_DIRECT_MEMORY_RATIO_PAUSE_REPLICATE().key(),
CelebornConf.WORKER_DIRECT_MEMORY_RATIO_PAUSE_RECEIVE().key()));
CelebornConf.WORKER_DIRECT_MEMORY_RATIO_PAUSE_RECEIVE().key()),
iae.getMessage());
} catch (Exception e) {
Assert.fail("With unexpected exception" + e);
}
Expand Down

0 comments on commit 26075c5

Please sign in to comment.