Skip to content

Commit

Permalink
IGNITE-13320 Fix test (double format mismatch).
Browse files Browse the repository at this point in the history
  • Loading branch information
xtern committed Dec 7, 2020
1 parent 0411b02 commit 2675dca
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2742,15 +2742,19 @@ public void testChangeReencryptionRate() throws Exception {
assertEquals(EXIT_CODE_OK, ret);
assertEquals(srvNodes, countSubstrs(testOut.toString(), "re-encryption rate is not limited."));

ret = execute("--encryption", REENCRYPTION_RATE.toString(), "0.01");
double newRate = 0.01;

ret = execute("--encryption", REENCRYPTION_RATE.toString(), Double.toString(newRate));

assertEquals(EXIT_CODE_OK, ret);
assertEquals(srvNodes, countSubstrs(testOut.toString(), "re-encryption rate has been limited to 0.01 MB/s."));
assertEquals(srvNodes, countSubstrs(testOut.toString(),
String.format("re-encryption rate has been limited to %.2f MB/s.", newRate)));

ret = execute("--encryption", REENCRYPTION_RATE.toString());

assertEquals(EXIT_CODE_OK, ret);
assertEquals(srvNodes, countSubstrs(testOut.toString(), "re-encryption rate is limited to 0.01 MB/s."));
assertEquals(srvNodes, countSubstrs(testOut.toString(),
String.format("re-encryption rate is limited to %.2f MB/s.", newRate)));

ret = execute("--encryption", REENCRYPTION_RATE.toString(), "0");

Expand Down

0 comments on commit 2675dca

Please sign in to comment.