mirror of
https://github.com/wled/WLED.git
synced 2025-07-15 14:56:32 +00:00
Fix test on Github Actions
This needed more time on Github
This commit is contained in:
parent
219b29991b
commit
04c3a925cc
@ -122,7 +122,6 @@ describe('General functionality', () => {
|
||||
}
|
||||
|
||||
// run script cdata.js and wait for it to finish
|
||||
|
||||
await execPromise('node tools/cdata.js');
|
||||
|
||||
// check if html_*.h files were created
|
||||
@ -160,7 +159,8 @@ describe('General functionality', () => {
|
||||
|
||||
// modify index.htm
|
||||
fs.appendFileSync(path.join(dataPath, 'index.htm'), ' ');
|
||||
|
||||
// delay for 1 second to ensure the modified time is different
|
||||
await new Promise(resolve => setTimeout(resolve, 1000));
|
||||
|
||||
// run script cdata.js and wait for it to finish
|
||||
await execPromise('node tools/cdata.js');
|
||||
@ -169,7 +169,7 @@ describe('General functionality', () => {
|
||||
const stats = fs.statSync(path.join(folderPath, 'html_ui.h'));
|
||||
const modifiedTime = stats.mtimeMs;
|
||||
const currentTime = Date.now();
|
||||
assert(currentTime - modifiedTime < 100, 'html_ui.h was not modified');
|
||||
assert(currentTime - modifiedTime < 500, 'html_ui.h was not modified');
|
||||
});
|
||||
});
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user