fix(core): update
This commit is contained in:
parent
0000984e4b
commit
bcb66b2ccf
@ -213,4 +213,8 @@ tap.test('should create, store and retrieve valid smartfiles', async () => {
|
||||
expect(retrievedString).to.equal(fileString);
|
||||
});
|
||||
|
||||
tap.test('should wait for file to be ready', async () => {
|
||||
await smartfile.fs.waitForFileToBeReady('./test/testassets/mytest.json')
|
||||
})
|
||||
|
||||
tap.start();
|
||||
|
@ -388,7 +388,7 @@ export const waitForFileToBeReady = async (filePathArg: string): Promise<void> =
|
||||
limitedArray.addOne(stats.size);
|
||||
if (
|
||||
limitedArray.array.length < 3 ||
|
||||
!(limitedArray.array[0] === limitedArray[1] && limitedArray.array[1] === limitedArray[2])
|
||||
!(limitedArray.array[0] === limitedArray.array[1] && limitedArray.array[1] === limitedArray.array[2])
|
||||
) {
|
||||
await plugins.smartdelay.delayFor(5000);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user