INNER CODE UNIT · Java
rollbackTime
PlaytikaOSS/testcontainers-spring-boot · embedded-aerospike/src/main/java/com/playtika/testcontainer/aerospike/AerospikeTestOperations.java:42
public void rollbackTime() {
DateTimeUtils.setCurrentMillisSystem();
}
private void timeTravel(OffsetDateTime newNow) {
DateTimeUtils.setCurrentMillisFixed(newNow.toInstant().toEpochMilli());
expiredDocumentsCleaner.cleanExpiredDocumentsBefore(newNow.toInstant().toEpochMilli());
}
/**
* More at https://www.aerospike.com/docs/guide/scan.html
*
* @return performed scans on aerospike server instance.
*/
@SneakyThrows
public List<ScanJob> getScans() {
Container.ExecResult execResult = aerospikeContainer.execInContainer("asinfo", "-v", "query-show");
String stdout = execResult.getStdout();