We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4cfc0a commit 52dbe95Copy full SHA for 52dbe95
tests/RedisTest.php
@@ -553,7 +553,7 @@ public function testIncrByFloat()
553
$this->redis->setOption(Redis::OPT_PREFIX, 'someprefix:');
554
$this->redis->del('key');
555
$this->redis->incrbyfloat('key',1.8);
556
- $this->assertEquals('1.8', $this->redis->get('key'));
+ $this->assertEquals(1.8, floatval($this->redis->get('key'))); // convert to float to avoid rounding issue on arm
557
$this->redis->setOption(Redis::OPT_PREFIX, '');
558
$this->assertTrue($this->redis->exists('someprefix:key'));
559
$this->redis->del('someprefix:key');
0 commit comments