Skip to content

Commit 6ad0f70

Browse files
author
Arpan Pandey
committed
remove timeout
1 parent 3757657 commit 6ad0f70

File tree

1 file changed

+20
-26
lines changed

1 file changed

+20
-26
lines changed

tests/integration/components/rive-animation-test.js

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,20 @@ module('Integration | Component | rive-animation', function (hooks) {
2222
await settled();
2323

2424
// Wait until the canvas has non-transparent pixels
25-
await waitUntil(
26-
() => {
27-
const context = canvas.getContext('2d');
28-
if (!context) return false;
25+
await waitUntil(() => {
26+
const context = canvas.getContext('2d');
27+
if (!context) return false;
2928

30-
const imageData = context.getImageData(0, 0, canvas.width, canvas.height).data;
29+
const imageData = context.getImageData(0, 0, canvas.width, canvas.height).data;
3130

32-
for (let i = 0; i < imageData.length; i += 4) {
33-
if (imageData[i + 3] !== 0) {
34-
return true;
35-
}
31+
for (let i = 0; i < imageData.length; i += 4) {
32+
if (imageData[i + 3] !== 0) {
33+
return true;
3634
}
35+
}
3736

38-
return false;
39-
},
40-
{ timeout: 5000 },
41-
);
37+
return false;
38+
});
4239

4340
// Check that canvas has been initialized
4441
assert.ok(canvas.width > 0, 'Canvas has width');
@@ -76,23 +73,20 @@ module('Integration | Component | rive-animation', function (hooks) {
7673
await settled();
7774

7875
// Wait until the canvas has non-transparent pixels
79-
await waitUntil(
80-
() => {
81-
const context = canvas.getContext('2d');
82-
if (!context) return false;
76+
await waitUntil(() => {
77+
const context = canvas.getContext('2d');
78+
if (!context) return false;
8379

84-
const imageData = context.getImageData(0, 0, canvas.width, canvas.height).data;
80+
const imageData = context.getImageData(0, 0, canvas.width, canvas.height).data;
8581

86-
for (let i = 0; i < imageData.length; i += 4) {
87-
if (imageData[i + 3] !== 0) {
88-
return true;
89-
}
82+
for (let i = 0; i < imageData.length; i += 4) {
83+
if (imageData[i + 3] !== 0) {
84+
return true;
9085
}
86+
}
9187

92-
return false;
93-
},
94-
{ timeout: 5000 },
95-
);
88+
return false;
89+
});
9690

9791
// Check that canvas has been initialized
9892
assert.ok(canvas.width > 0, 'Canvas has width');

0 commit comments

Comments
 (0)