[folks] tests: Fix potential match tests in Tracker backend



commit 385247e706a2c9118b312f546b5175469c8f4894
Author: Philip Withnall <philip tecnocode co uk>
Date:   Mon Mar 26 22:03:30 2012 +0100

    tests: Fix potential match tests in Tracker backend
    
    The recent changes to name matching broke the incrementing of match levels
    depended on by the tests. Fix that.

 folks/potential-match.vala |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/folks/potential-match.vala b/folks/potential-match.vala
index d4f44a4..5b53ea9 100644
--- a/folks/potential-match.vala
+++ b/folks/potential-match.vala
@@ -126,10 +126,11 @@ public class Folks.PotentialMatch : Object
        * spoofed). */
       if (a.trust_level == TrustLevel.NONE || b.trust_level == TrustLevel.NONE)
         {
-          this._result = MatchResult.NONE;
           return this._result;
         }
 
+      this._result = MatchResult.VERY_LOW;
+
       /* If individuals share gender. */
       if (this._individual_a.gender != Gender.UNSPECIFIED &&
           this._individual_b.gender != Gender.UNSPECIFIED &&



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]