diff --git a/README.md b/README.md
index 13a40b98..b6df37d9 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
# js-encryptedfs
-staging:[](https://gitlab.com/MatrixAI/open-source/js-workers/commits/staging)
-master:[](https://gitlab.com/MatrixAI/open-source/js-workers/commits/master)
+staging:[](https://gitlab.com/MatrixAI/open-source/js-encryptedfs/commits/staging)
+master:[](https://gitlab.com/MatrixAI/open-source/js-encryptedfs/commits/master)
Encrypted filesystem library for TypeScript/JavaScript applications
diff --git a/docs/index.html b/docs/index.html
index 1afd271a..65b8d6e0 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -2,8 +2,8 @@
js-encryptedfs
-
staging:
-master:
+staging:
+master:
Encrypted filesystem library for TypeScript/JavaScript applications
- Virtualised - files, directories, permissions are all virtual constructs, they do not correspond to real filesystems
diff --git a/package-lock.json b/package-lock.json
index 13b28ae9..3251b9fe 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "encryptedfs",
- "version": "3.5.3",
+ "version": "3.5.5",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "encryptedfs",
- "version": "3.5.3",
+ "version": "3.5.5",
"license": "Apache-2.0",
"dependencies": {
"@matrixai/async-init": "^1.8.2",
diff --git a/package.json b/package.json
index febb4668..8d5fbc59 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "encryptedfs",
- "version": "3.5.3",
+ "version": "3.5.5",
"author": "Matrix AI",
"contributors": [
{
diff --git a/tests/EncryptedFS.concurrent.test.ts b/tests/EncryptedFS.concurrent.test.ts
index f9e8bcf6..fdad64b5 100644
--- a/tests/EncryptedFS.concurrent.test.ts
+++ b/tests/EncryptedFS.concurrent.test.ts
@@ -1906,6 +1906,7 @@ describe(`${EncryptedFS.name} Concurrency`, () => {
(async () => {
const writeStream = efs.createWriteStream(path1);
for (let i = 0; i < 10; i++) {
+ await sleep(50);
writeStream.write(dataA);
}
writeStream.end();
@@ -1919,17 +1920,10 @@ describe(`${EncryptedFS.name} Concurrency`, () => {
{ status: 'fulfilled', value: undefined },
]);
stat = await efs.stat(path1);
- contents = (await efs.readFile(path1)).toString();
-
- if (contents[0] === 'A') {
- expect(contents).toEqual(dataA.repeat(10));
- expect(contents).toHaveLength(50);
- expect(stat.size).toEqual(50);
- } else {
- expect(contents).toEqual(dataB + dataA.repeat(5));
- expect(contents).toHaveLength(50);
- expect(stat.size).toEqual(50);
- }
+ contents = (await efs.readFile(path1, { encoding: 'utf-8' })) as string;
+ expect(stat.size).toEqual(50);
+ expect(contents).toHaveLength(50);
+ expect(contents).toMatch(/^(BBBBB){0,5}A+$/);
});
test('EncryptedFS.createReadStream and EncryptedFS.write', async () => {
const path1 = utils.pathJoin('dir', 'file1');