MCPcopy Create free account
hub / github.com/scality/cloudserver / checkNoError

Function checkNoError

tests/functional/aws-node-sdk/test/object/objectHead.js:29–32  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

27const partSize = 1024 * 1024 * 5; // 5MB minumum required part size.
28
29function checkNoError(err) {
30 assert.equal(err, null,
31 `Expected success, got error ${JSON.stringify(err)}`);
32}
33
34function dateFromNow(diff) {
35 const d = new Date();

Callers 1

objectHead.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected