Skip to content

Commit

Permalink
test update
Browse files Browse the repository at this point in the history
  • Loading branch information
naveenpaul1 committed Mar 5, 2025
1 parent 0af4e1c commit e7c1e46
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/test/unit_tests/test_lifecycle.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ mocha.describe('lifecycle', () => {
source_stream: readable_buffer(mp_data, split, finish),
});
console.log("upload_multipart", resp);
multiparts_ids.push(resp.multipart_id);
multiparts_ids.push(new mongodb.ObjectId(resp.multipart_id));
};
// upload the real multiparts we want to complete with
await Promise.all(_.times(num_parts,
Expand All @@ -268,10 +268,10 @@ mocha.describe('lifecycle', () => {
};

console.log('create_mock_multipart_upload bucket', bucket, 'key', key, 'update', util.inspect(update));
const id = new mongodb.ObjectId(obj_id);
console.log('create_mock_multipart_upload id', id, 'obj_id', obj_id, 'multiparts_ids', multiparts_ids);

const update_result = await MDStore.instance().update_multiparts_by_ids(multiparts_ids, update, { uncommitted: 1 });
//const id = new mongodb.ObjectId(obj_id);
console.log('create_mock_multipart_upload id', obj_id, 'obj_id', obj_id, 'multiparts_ids', multiparts_ids);
console.log("update_multiparts_by_ids IDS", multiparts_ids, update);
const update_result = await MDStore.instance().update_multiparts_by_ids(multiparts_ids, update);
console.log('update_multiparts_by_ids', update_result);

const mp_list_after = await rpc_client.object.list_multiparts({ obj_id, bucket, key });
Expand Down

0 comments on commit e7c1e46

Please sign in to comment.