commit 769c83f717efea84e6d4291be370837c2d8a89fc
parent 92900a3020910e9e0c9aa27392fef0eb6573206d
Author: Toby Pilling <toby@thunderbird.net>
Date: Mon, 6 Oct 2025 15:10:13 +0000
Bug 1991866 - Bug 1991866 - Fix [c-c perma] test_TOUNotificationFlow.js to add meaningful default value when getting termsofuse.currentVersion. r=mviar,mkmelin,toolkit-telemetry-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D267593
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/toolkit/components/telemetry/tests/unit/test_TOUNotificationFlow.js b/toolkit/components/telemetry/tests/unit/test_TOUNotificationFlow.js
@@ -728,7 +728,7 @@ add_task(
Services.prefs.setStringPref("termsofuse.acceptedDate", String(Date.now()));
Services.prefs.setIntPref(
"termsofuse.acceptedVersion",
- Services.prefs.getIntPref(TOU_CURRENT_VERSION_PREF)
+ Services.prefs.getIntPref(TOU_CURRENT_VERSION_PREF, 4)
);
Assert.ok(