add publish to transaction
This commit is contained in:
@@ -219,4 +219,15 @@ public class TransactionCommandsTest extends JedisCommandTestBase {
|
||||
string.get();
|
||||
t.exec();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void lala() {
|
||||
Transaction multi = jedis.multi();
|
||||
Response<Long> publish = multi.publish("foo", "bar");
|
||||
Response<Long> bpublish = multi.publish("foo".getBytes(), "bar"
|
||||
.getBytes());
|
||||
multi.exec();
|
||||
assertEquals(0, publish.get().longValue());
|
||||
assertEquals(0, bpublish.get().longValue());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user