summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Reitter <travis.reitter@collabora.co.uk>2011-10-20 05:50:15 (GMT)
committerTravis Reitter <travis.reitter@collabora.co.uk>2011-10-24 18:34:16 (GMT)
commit9bb9f634a128052356e320c903a172a9cbe837c8 (patch)
treea1ec151b4fa37a55185b98c971b3268202f98635
parentd40b76da12299674e178ed72f5a654ba3f253ab1 (diff)
downloadfolks-9bb9f634a128052356e320c903a172a9cbe837c8.tar.gz
folks-9bb9f634a128052356e320c903a172a9cbe837c8.tar.xz
Properly set the parameters for the eds/set-phones test
Helps: bgo#662433 - AbstractFieldDetails.equal() is ambiguous about checking parameters.
-rw-r--r--tests/eds/set-phones.vala4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/eds/set-phones.vala b/tests/eds/set-phones.vala
index 661d5ba..0452ab1 100644
--- a/tests/eds/set-phones.vala
+++ b/tests/eds/set-phones.vala
@@ -141,7 +141,9 @@ public class SetPhonesTests : Folks.TestCase
Folks.Individual i = (Folks.Individual) individual_obj;
foreach (var phone_fd in i.phone_numbers)
{
- if (phone_fd.equal (new PhoneFieldDetails ("1234")))
+ var phone_1 = new PhoneFieldDetails ("1234");
+ phone_1.set_parameter (phone_1.PARAM_TYPE, phone_1.PARAM_TYPE_HOME);
+ if (phone_fd.equal (phone_1))
{
this._found_after_update = true;
this._main_loop.quit ();