Skip to content

Commit 45dd0a1

Browse files
committed
Update RedisTestCase.php
1 parent 0d378c4 commit 45dd0a1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/Dashboards/Redis/RedisTestCase.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,11 +435,14 @@ public function testExportAndImport(): void {
435435
];
436436

437437
$export_keys_array = [];
438+
438439
foreach ($keys_to_test as $key => $data) {
439440
$this->redis->set($key, $data['value']);
441+
440442
if ($data['ttl'] > 0) {
441443
$this->redis->expire($key, $data['ttl']);
442444
}
445+
443446
$export_keys_array[] = ['key' => $key, 'info' => ['ttl' => $this->redis->ttl($key)]];
444447
}
445448

@@ -451,6 +454,7 @@ public function testExportAndImport(): void {
451454
);
452455

453456
$this->redis->flushDatabase();
457+
454458
foreach (array_keys($keys_to_test) as $key) {
455459
$this->assertSame(0, $this->redis->exists($key));
456460
}
@@ -484,6 +488,7 @@ function (string $key, string $value, int $ttl): bool {
484488
$this->assertSame($data['value'], $this->redis->get($key));
485489

486490
$restored_ttl = $this->redis->ttl($key);
491+
487492
if ($data['ttl'] === -1) {
488493
$this->assertSame(-1, $restored_ttl);
489494
} else {

0 commit comments

Comments
 (0)