Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion openam-ui/openam-ui-ria/karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,26 @@
/*
* The contents of this file are subject to the terms of the Common Development and
* Distribution License (the License). You may not use this file except in compliance with the
* License.
*
* You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
* specific language governing permission and limitations under the License.
*
* When distributing Covered Software, include this CDDL Header Notice in each file and include
* the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
* Header, with the fields enclosed by brackets [] replaced by your own identifying
* information: "Portions copyright [year] [name of copyright owner]".
*
* Portions copyright 2026 3A Systems LLC.
*/

module.exports = function (config) {
config.set({
client: {
mocha: {
timeout : 6000
// A "before" hook that loads the module under test through Squire can take several seconds
// on a loaded CI runner; keep this below waitSeconds in src/test/js/test-main.js.
timeout : 30000
}
},
basePath: ".",
Expand Down
6 changes: 5 additions & 1 deletion openam-ui/openam-ui-ria/src/test/js/test-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* information: "Portions copyright [year] [name of copyright owner]".
*
* Copyright 2015-2016 ForgeRock AS.
* Portions copyright 2025 3A Systems LLC.
* Portions copyright 2025-2026 3A Systems LLC.
*/

(function () {
Expand All @@ -23,6 +23,10 @@

require.config({
baseUrl: "/base/target/compiled",
// The default of 7 seconds is too short on a loaded CI runner, and Squire copies this value into
// every context it creates. Keep it above the Mocha timeout in karma.conf.js, so a slow load inside a
// test is reported by Mocha and this limit only bounds the initial load of the test files.
waitSeconds: 60,

map: {
"*": {
Expand Down
Loading