Skip to content

Commit e01a1ac

Browse files
Add transaction IT.
Signed-off-by: Yury-Fridlyand <[email protected]>
1 parent 7af3b87 commit e01a1ac

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

java/integTest/src/test/java/glide/TestUtilities.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,17 @@ public static BaseTransaction<?> transactionTest(BaseTransaction<?> baseTransact
1414
String key1 = "{key}" + UUID.randomUUID();
1515
String key2 = "{key}" + UUID.randomUUID();
1616

17-
baseTransaction.set(key1, "bar");
18-
baseTransaction.set(key2, "baz", SetOptions.builder().returnOldValue(true).build());
19-
baseTransaction.customCommand("MGET", key1, key2);
17+
baseTransaction
18+
.configResetStat()
19+
.set(key1, "bar")
20+
.set(key2, "baz", SetOptions.builder().returnOldValue(true).build())
21+
.customCommand("MGET", key1, key2);
2022

2123
return baseTransaction;
2224
}
2325

2426
public static Object[] transactionTestResult() {
25-
return new Object[] {"OK", null, new String[] {"bar", "baz"}};
27+
return new Object[] {"OK", "OK", null, new String[] {"bar", "baz"}};
2628
}
2729

2830
/** Extract integer parameter value from INFO command output */

0 commit comments

Comments
 (0)