From 6365cfeecad3ba56348829eac308566708b346bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Wollse=CC=81n?= Date: Tue, 11 Jun 2019 13:07:17 +0300 Subject: [PATCH] Configured slumber: 1 week data collection -> 2 week slumber -> 2 day data collection --- docs/TESTPLAN.md | 4 ++-- src/background.js | 2 +- src/studySetup.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/TESTPLAN.md b/docs/TESTPLAN.md index ea1c4d9..f6efbe7 100644 --- a/docs/TESTPLAN.md +++ b/docs/TESTPLAN.md @@ -84,7 +84,7 @@ No user interface elements are modified in this study. - Install the add-on as per above - Verify that the study runs - Quit Firefox -- Adjust the system clock so that the study is just about to have run for 14 days +- Adjust the system clock so that the study is just about to have run for 21 days - Start Firefox - Verify that the study runs - Verify that the study add-on log out includes "We have entered the slumber period. Do not activate the study but schedule the re-activation" @@ -102,7 +102,7 @@ No user interface elements are modified in this study. - Install the add-on as per above - Verify that the study runs - Quit Firefox -- Adjust the system clock so that the study has run for 16 days +- Adjust the system clock so that the study has run for 22 days - Start Firefox - Verify that the study runs - Verify that the study add-on log out includes "We are back after the slumber, simply activate the study and wait for study to expire" diff --git a/src/background.js b/src/background.js index 67b115f..fb5723c 100644 --- a/src/background.js +++ b/src/background.js @@ -34,7 +34,7 @@ let studyLengthInDays; const defaultSlumberStartDay = 7; -const defaultSlumberEndDay = 14; +const defaultSlumberEndDay = 21; class StudyLifeCycleHandler { /** diff --git a/src/studySetup.js b/src/studySetup.js index 06152f0..ffeaf75 100644 --- a/src/studySetup.js +++ b/src/studySetup.js @@ -81,7 +81,7 @@ const baseStudySetup = { // maximum time that the study should run, from the first run expire: { - days: 7 * 3, // 3 weeks + days: 7+14+2, }, };