[Pkg-mozext-commits] [perspectives-extension] 23/44: Unit tests - Fix 'weakly seen' test

David Prévot taffit at moszumanska.debian.org
Sat Jun 6 02:55:28 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository perspectives-extension.

commit 0b924923581fe1fee40fa77aca1a6740aa093b0d
Author: Dave Schaefer <dave.schaefer at gmail.com>
Date:   Tue Nov 4 22:23:52 2014 -0700

    Unit tests - Fix 'weakly seen' test
    
    Don't allow check_length to be inside the [key start: key end] time window.
    We want to test when check_length does not reach far back enough
    to include the observation's ending time.
---
 test/test.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/test.html b/test/test.html
index 5b8da16..318be60 100644
--- a/test/test.html
+++ b/test/test.html
@@ -307,7 +307,7 @@ function client_sanity() {
 
     var check_length1 = day_last_seen - 1; //days
     assert_setup(check_length1 >= 1, "check length >= 1");
-    assert_setup(check_length1 <= day_last_seen  , "check length <= ending day of observation.");
+    assert_setup(check_length1 < day_last_seen  , "check length < ending day of observation.");
     weakly_seen_test = Pers_client_policy.key_weakly_seen_by_quorum(key, second_result_list, equal_quorum_size, check_length1);
     assert(weakly_seen_test === false       , "Keys seen by quorum_size notaries but not in the past X days do not count as weakly seen.");
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/perspectives-extension.git



More information about the Pkg-mozext-commits mailing list