Skip to content

Commit f613e97

Browse files
Copilotjens-maus
andcommitted
test: harden flaky CI checks for division-by-zero and CVE URL scan
Co-authored-by: jens-maus <5887769+jens-maus@users.noreply.github.com> Agent-Logs-Url: https://github.com/OpenCCU/ReGaHss-Test/sessions/c0ad8bb3-da17-4023-af38-83b24518c8ef
1 parent bd9c0f3 commit f613e97

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/11-script-errors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ var c = system.ToFloat("a");
109109
}
110110

111111
this.timeout(60000);
112-
subscribe('rega', /division by (0|zero)/, function () {
112+
subscribe('rega', /(division by (0|zero)|inf)/i, function () {
113113
done();
114114
});
115115
rega.exec(`

test/14-cve-tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ flavors.forEach(function (flavor) {
6565
},
6666
function (callback) {
6767
const rec = urlArray[counter++];
68-
request({url: 'http://127.0.0.1:8183' + rec, followRedirect: false}, function (error, response, body) {
68+
request({url: 'http://127.0.0.1:8183' + rec, followRedirect: false, timeout: 5000}, function (error, response, body) {
6969
if (error) {
7070
callback(error, counter);
7171
} else if (typeof (response.headers.location) !== 'undefined' &&

0 commit comments

Comments
 (0)