Skip to content

Commit 82227e5

Browse files
author
Vincent Bernat
committed
getServerByKey cannot report weight anymore
Due to a change in libmemcached (exposed in 5450f45), `getServerByKey` is not able any more to report a server weight. It reports 0 instead. This makes the test on this function fails. We fix this by expecting a weight of 0 instead of a weight of 1.
1 parent 304806f commit 82227e5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/experimental/getserverbykey.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,29 +31,29 @@ array(%d) {
3131
["port"]=>
3232
int(%d)
3333
["weight"]=>
34-
int(1)
34+
int(0)
3535
}
3636
array(%d) {
3737
["host"]=>
3838
string(%d) "%s"
3939
["port"]=>
4040
int(%d)
4141
["weight"]=>
42-
int(1)
42+
int(0)
4343
}
4444
array(%d) {
4545
["host"]=>
4646
string(%d) "%s"
4747
["port"]=>
4848
int(%d)
4949
["weight"]=>
50-
int(1)
50+
int(0)
5151
}
5252
array(%d) {
5353
["host"]=>
5454
string(%d) "%s"
5555
["port"]=>
5656
int(%d)
5757
["weight"]=>
58-
int(1)
58+
int(0)
5959
}

0 commit comments

Comments
 (0)