No bug, no r=, no a=, Try to defuse test_history_expiration daylight saving time timebomb by going back an extra day

This commit is contained in:
Phil Ringnalda 2011-11-08 00:08:47 -08:00
Родитель 991bfd6cf4
Коммит 883920eef6
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -92,8 +92,8 @@ function run_test()
getService(Ci.nsINavHistoryService);
// Add the download to places
// Add the visit in the past to circumvent possible VM timing bugs
// Go back by 8 days, since expiration ignores history in the last 7 days.
let expirableTime = Date.now() - 8 * 24 * 60 * 60 * 1000;
// Go back by 9 days, since expiration ignores history in the last 7 days.
let expirableTime = Date.now() - 9 * 24 * 60 * 60 * 1000;
histsvc.addVisit(theURI, expirableTime * 1000, null,
histsvc.TRANSITION_DOWNLOAD, false, 0);