Skip to content

Commit

Permalink
Merge pull request #7732 from shirady/fix-eslint-erros
Browse files Browse the repository at this point in the history
Fix Eslint Errors
  • Loading branch information
shirady authored Jan 18, 2024
2 parents ee41e09 + 072b4d4 commit df9d258
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/test/unit_tests/nc_coretest.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ function setup(options = {}) {

nsfs_process.on('exit', (code, signal) => {
dbg.error(`nsfs.js exited code=${code}, signal=${signal}`);
logStream.end()
logStream.end();
});

nsfs_process.on('error', err => {
dbg.error(`nsfs.js exited with error`, err);
logStream.end()
logStream.end();
});

// TODO - run health
Expand Down
4 changes: 2 additions & 2 deletions src/test/unit_tests/test_bucketspace.js
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ mocha.describe('bucket operations - namespace_fs', function() {
assert.fail(`found account: ${deleted_account_exist} - account should be deleted`);
} catch (err) {
if (process.env.NC_CORETEST) {
assert.equal(JSON.parse(err.stdout).error.code, ManageCLIError.NoSuchAccountName.code)
assert.equal(JSON.parse(err.stdout).error.code, ManageCLIError.NoSuchAccountName.code);
} else {
assert.equal(err.rpc_code, 'NO_SUCH_ACCOUNT');
}
Expand Down Expand Up @@ -794,7 +794,7 @@ mocha.describe('bucket operations - namespace_fs', function() {
assert.fail(`found account: ${deleted_account_exist} - account should be deleted`);
} catch (err) {
if (process.env.NC_CORETEST) {
assert.equal(JSON.parse(err.stdout).error.code, ManageCLIError.NoSuchAccountName.code)
assert.equal(JSON.parse(err.stdout).error.code, ManageCLIError.NoSuchAccountName.code);
} else {
assert.equal(err.rpc_code, 'NO_SUCH_ACCOUNT');
}
Expand Down
4 changes: 2 additions & 2 deletions src/test/unit_tests/test_bucketspace_fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ mocha.describe('bucketspace_fs', function() {
const res = await bucketspace_fs.read_account_by_access_key({ access_key });
assert.strictEqual(res.email.unwrap(), account_user2.email);
assert.strictEqual(res.access_keys[0].access_key.unwrap(), account_user2.access_keys[0].access_key);
const distinguished_name = res.nsfs_account_config.distinguished_name.unwrap();;
const distinguished_name = res.nsfs_account_config.distinguished_name.unwrap();
assert.strictEqual(distinguished_name, 'root');
const res2 = await native_fs_utils.get_user_by_distinguished_name({ distinguished_name });
assert.strictEqual(res2.uid, 0);
Expand All @@ -207,7 +207,7 @@ mocha.describe('bucketspace_fs', function() {
const res = await bucketspace_fs.read_account_by_access_key({ access_key });
assert.strictEqual(res.email.unwrap(), account_user3.email);
assert.strictEqual(res.access_keys[0].access_key.unwrap(), account_user3.access_keys[0].access_key);
const distinguished_name = res.nsfs_account_config.distinguished_name.unwrap();;
const distinguished_name = res.nsfs_account_config.distinguished_name.unwrap();
assert.strictEqual(distinguished_name, os.userInfo().username);
const res2 = await native_fs_utils.get_user_by_distinguished_name({ distinguished_name });
assert.strictEqual(res2.uid, process.getuid());
Expand Down

0 comments on commit df9d258

Please sign in to comment.