mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 22:32:51 +00:00
Bug 1183008 - Modify test_ocsp_caching.js to use modified thisUpdate rather than sleep. r=keeler
MozReview-Commit-ID: K9JKCkWOO31 --HG-- extra : rebase_source : ea4c2997652695c2fbff35f238690843ed591ca2
This commit is contained in:
parent
22b567b84c
commit
f798c65a8e
@ -36,8 +36,8 @@ function respondWithError(request, response) {
|
||||
response.bodyOutputStream.write(body, body.length);
|
||||
}
|
||||
|
||||
function generateGoodOCSPResponse() {
|
||||
let args = [ ["good", "default-ee", "unused", 0 ] ];
|
||||
function generateGoodOCSPResponse(thisUpdateSkew) {
|
||||
let args = [ ["good", "default-ee", "unused", thisUpdateSkew ] ];
|
||||
let responses = generateOCSPResponses(args, "ocsp_certs");
|
||||
return responses[0];
|
||||
}
|
||||
@ -148,13 +148,7 @@ function add_tests() {
|
||||
// response will be seen as "not newer" and it won't replace the existing
|
||||
// entry.
|
||||
add_test(function() {
|
||||
let duration = 1200;
|
||||
do_print("Sleeping for " + duration + "ms");
|
||||
let timer = Cc["@mozilla.org/timer;1"].createInstance(Ci.nsITimer);
|
||||
timer.initWithCallback(run_next_test, duration, Ci.nsITimer.TYPE_ONE_SHOT);
|
||||
});
|
||||
add_test(function() {
|
||||
gGoodOCSPResponse = generateGoodOCSPResponse();
|
||||
gGoodOCSPResponse = generateGoodOCSPResponse(1200);
|
||||
run_next_test();
|
||||
});
|
||||
add_ocsp_test("ocsp-stapling-none.example.com", PRErrorCodeSuccess,
|
||||
|
@ -106,8 +106,6 @@ run-sequentially = hardcoded ports
|
||||
[test_nss_shutdown.js]
|
||||
[test_ocsp_caching.js]
|
||||
run-sequentially = hardcoded ports
|
||||
# bug 1183008
|
||||
skip-if = toolkit == 'android' || asan
|
||||
[test_ocsp_enabled_pref.js]
|
||||
run-sequentially = hardcoded ports
|
||||
[test_ocsp_fetch_method.js]
|
||||
|
Loading…
x
Reference in New Issue
Block a user