Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
-
CI results over the last 21 days3,385Runs99.97%Pass1Failures0Timeouts0Crashes0Skips
Runs with issues per day (up to 0.1%) Oct 2Oct 22- Failures
- This test runs only with pattern: appname != 'thunderbird'
- Manifest: services/settings/test/unit/xpcshell.toml
/* Any copyright is dedicated to the Public Domain.
"use strict";
const server = new HttpServer();
server.start(-1);
registerCleanupFunction(() => server.stop(() => {}));
server.registerPrefixHandler("/", () => {
Assert.ok(false, "No request should reach the server");
});
add_setup(() => {
Services.prefs.setStringPref(
"services.settings.server",
);
registerCleanupFunction(() =>
Services.prefs.clearUserPref("services.settings.server")
);
});
add_task(async function test_remote_activity_disabled() {
Assert.ok(Utils.shouldSkipRemoteActivity);
Assert.deepEqual(await RemoteSettings.pullStartupBundle(), []);
await RemoteSettings.pollChanges();
});
add_task(function test_env_read_once() {
Services.env.set("MOZ_REMOTE_SETTINGS_DISABLED", "");
Assert.ok(
Utils.shouldSkipRemoteActivity,
"The environment variable is only read once"
);
});