mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Avoid reporting tests to Sauce Labs when errors occur to force a retry.
This commit is contained in:
@@ -185,6 +185,12 @@
|
||||
if (!window.require) {
|
||||
return;
|
||||
}
|
||||
// avoid reporting tests to Sauce Labs when errors occur
|
||||
if (ui.isSauceLabs) {
|
||||
window.onerror = function() {
|
||||
QUnit.config.done.length = 0;
|
||||
};
|
||||
}
|
||||
var reBasename = /[\w.-]+$/,
|
||||
basePath = ('//' + location.host + location.pathname.replace(reBasename, '')).replace(/\btest\/$/, ''),
|
||||
modulePath = ui.buildPath.replace(/\.js$/, ''),
|
||||
@@ -303,4 +309,4 @@
|
||||
};
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user