mirror of
https://github.com/phpredis/phpredis.git
synced 2026-06-19 07:35:31 +00:00
Fix geosearchstore bypolygon test
In cluster mode the destination and source keys must hash to the same slot.
This commit is contained in:
committed by
Michael Grunder
parent
b3da0f3bcf
commit
f24814a423
+3
-3
@@ -6951,12 +6951,12 @@ class Redis_Test extends TestSuite {
|
||||
if ( ! $this->minValkeyVersionCheck('9.0.0'))
|
||||
$this->markTestSkipped();
|
||||
|
||||
$this->addCities('ca:cities');
|
||||
$this->assertEquals(1, $this->redis->geosearchstore('{gk}dst', 'ca:cities', '', [
|
||||
$this->addCities('{geo}:cities');
|
||||
$this->assertEquals(1, $this->redis->geosearchstore('{geo}:dst', '{geo}:cities', '', [
|
||||
-121.90, 39.65, -121.77, 39.65, -121.77, 39.80, -121.90, 39.80
|
||||
], ''));
|
||||
|
||||
$this->assertEquals(['Chico'], $this->redis->geosearch('{gk}dst', 'Chico', 1, 'm'));
|
||||
$this->assertEquals(['Chico'], $this->redis->geosearch('{geo}:dst', 'Chico', 1, 'm'));
|
||||
}
|
||||
|
||||
public function testGeoSearchStore() {
|
||||
|
||||
Reference in New Issue
Block a user