Skip to content

Commit

Permalink
check test
Browse files Browse the repository at this point in the history
  • Loading branch information
naveenpaul1 committed Oct 16, 2024
1 parent 77fc48b commit 8034ed2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/test/unit_tests/jest_tests/test_unsort_list_object.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ describe('manage unsorted list objcts flow', () => {
});
});

describe('Telldir and Seekdir implementation', () => {
/*describe('Telldir and Seekdir implementation', () => {
const tmp_fs_path = path.join(TMP_PATH, 'test_list_object');
const list_dir_root = path.join(tmp_fs_path, 'list_dir_root');
const list_dir_1_1 = path.join(list_dir_root, 'list_dir_1_1');
Expand Down Expand Up @@ -224,10 +224,10 @@ describe('manage unsorted list objcts flow', () => {
//total number of dir and files inside list_dir_root is 5
expect(total_dir_entries).toBe(10000);
});
});
});*/


describe('list objects - dirs', () => {
/*describe('list objects - dirs', () => {
beforeAll(async () => {
config.NSFS_LIST_OBJECTS_V2_UNSORTED_ENABLED = true;
await fs_utils.create_fresh_path(ns_tmp_bucket_path);
Expand Down Expand Up @@ -339,7 +339,7 @@ describe('manage unsorted list objcts flow', () => {
expect(r.objects.map(it => it.key)).not.toContain("folder1/ainner_folder/file50");
expect(r.objects.map(it => it.key)).not.toContain("folder1/ainner_folder/file49");
});
});
});*/

describe('list objects - pagination', () => {
beforeAll(async () => {
Expand Down Expand Up @@ -367,6 +367,7 @@ describe('manage unsorted list objcts flow', () => {
await fs_utils.folder_delete(`${ns_nsfs_tmp_bucket_path}`);
});
it('page=1000 and list_type 2', async () => {
config.NSFS_LIST_OBJECTS_V2_UNSORTED_ENABLED = true;
let r;
let total_items = 0;
for (;;) {
Expand All @@ -383,6 +384,7 @@ describe('manage unsorted list objcts flow', () => {
}
}, timeout);
it('page=500 and list_type 2', async () => {
config.NSFS_LIST_OBJECTS_V2_UNSORTED_ENABLED = true;
let r;
let total_items = 0;
for (;;) {
Expand All @@ -400,6 +402,7 @@ describe('manage unsorted list objcts flow', () => {
}
}, timeout);
it('page=250 and list_type 2', async () => {
config.NSFS_LIST_OBJECTS_V2_UNSORTED_ENABLED = true;
let r;
let total_items = 0;
for (;;) {
Expand All @@ -417,6 +420,7 @@ describe('manage unsorted list objcts flow', () => {
}
}, timeout);
it('page=100 and list_type 2', async () => {
config.NSFS_LIST_OBJECTS_V2_UNSORTED_ENABLED = true;
let r;
let total_items = 0;
for (;;) {
Expand Down

0 comments on commit 8034ed2

Please sign in to comment.