Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit 7fa8289

Browse files
author
Simon Hofmann
committed
Updated testcase for video io
1 parent 49a1d56 commit 7fa8289

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/tests/modules/io/videoCaptureTests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module.exports = () => {
5050
it('should set properties', () => {
5151
const cap = new cv.VideoCapture(getTestVideoPath());
5252
const wasSet = cap.set(cv.CAP_PROP_POS_MSEC, 1000)
53-
expect(cap.get(cv.CAP_PROP_POS_MSEC)|0).to.equal(1001);
53+
expect(cap.get(cv.CAP_PROP_POS_MSEC)|0).to.be.within(1000,1001);
5454
expect(wasSet).to.equal(true);
5555
});
5656
});
@@ -59,7 +59,7 @@ module.exports = () => {
5959
it('should set properties', (done) => {
6060
const cap = new cv.VideoCapture(getTestVideoPath());
6161
cap.setAsync(cv.CAP_PROP_POS_MSEC, 1000, (err, wasSet) => {
62-
expect(cap.get(cv.CAP_PROP_POS_MSEC)|0).to.equal(1001);
62+
expect(cap.get(cv.CAP_PROP_POS_MSEC)|0).to.be.within(1000, 1001);
6363
expect(wasSet).to.equal(true);
6464
done();
6565
});

0 commit comments

Comments
 (0)