Skip to content

Commit b086ab1

Browse files
add timeour in resend to give send time to execute externally
1 parent 1a8eaec commit b086ab1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/test.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -472,16 +472,18 @@ describe("Resend Endpoint", function () {
472472
const data = {
473473
log_id: result.receipt_id,
474474
};
475-
475+
// ensure the send fuction has executed
476+
setTimeout(
476477
that.sendwithus.resend(data, function (err, result) {
477478
try {
479+
478480
assert.ifError(err);
479481
assert.ok(result.success, true);
480482
done()
481483
} catch (e) {
482484
done(e)
483485
}
484-
});
486+
}), 500);
485487
});
486488
});
487489
});

0 commit comments

Comments
 (0)