Skip to content

Commit

Permalink
Apply Spotless
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Louie <[email protected]>
  • Loading branch information
jonathanl-bq committed Jan 7, 2025
1 parent 94967ef commit 8fd4ad2
Showing 1 changed file with 24 additions and 19 deletions.
43 changes: 24 additions & 19 deletions java/integTest/src/test/java/glide/TransactionTestUtilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -815,30 +815,35 @@ private static Object[] serverManagementCommands(BaseTransaction<?> transaction)

if (SERVER_VERSION.isGreaterThanOrEqualTo("7.0.0")) {
transaction
.configSet(Map.of("timeout", "2000", "rdb-save-incremental-fsync", "no"))
.configGet(new String[] {"timeout", "rdb-save-incremental-fsync"});
.configSet(Map.of("timeout", "2000", "rdb-save-incremental-fsync", "no"))
.configGet(new String[] {"timeout", "rdb-save-incremental-fsync"});
}

var expectedResults = new Object[] {
OK, // configSet(Map.of("timeout", "1000"))
Map.of("timeout", "1000"), // configGet(new String[] {"timeout"})
OK, // configResetStat()
"Redis ver. " + SERVER_VERSION + '\n', // lolwut(1)
OK, // flushall()
OK, // flushall(ASYNC)
OK, // flushdb()
OK, // flushdb(ASYNC)
0L, // dbsize()
};
var expectedResults =
new Object[] {
OK, // configSet(Map.of("timeout", "1000"))
Map.of("timeout", "1000"), // configGet(new String[] {"timeout"})
OK, // configResetStat()
"Redis ver. " + SERVER_VERSION + '\n', // lolwut(1)
OK, // flushall()
OK, // flushall(ASYNC)
OK, // flushdb()
OK, // flushdb(ASYNC)
0L, // dbsize()
};

if (SERVER_VERSION.isGreaterThanOrEqualTo("7.0.0")) {
expectedResults =
concatenateArrays(
expectedResults,
new Object[] {
OK, // configSet(Map.of("timeout", "2000", "rdb-save-incremental-fsync", "no"))
Map.of("timeout", "2000", "rdb-save-incremental-fsync", "no"), // configGet(new String[] {"timeout", "rdb-save-incremental-fsync"})
});
concatenateArrays(
expectedResults,
new Object[] {
OK, // configSet(Map.of("timeout", "2000", "rdb-save-incremental-fsync", "no"))
Map.of(
"timeout",
"2000",
"rdb-save-incremental-fsync",
"no"), // configGet(new String[] {"timeout", "rdb-save-incremental-fsync"})
});
}

return expectedResults;
Expand Down

0 comments on commit 8fd4ad2

Please sign in to comment.