mirror of
https://github.com/danbulant/pngjs
synced 2026-07-10 05:30:54 +00:00
Large timeouts for slow CI servers
This commit is contained in:
parent
a5b282356b
commit
411d777e22
2 changed files with 7 additions and 5 deletions
|
|
@ -6,6 +6,9 @@ var test = require('tape');
|
||||||
var bufferEqual = require('buffer-equal');
|
var bufferEqual = require('buffer-equal');
|
||||||
|
|
||||||
test('outputs background, created from scratch', function (t) {
|
test('outputs background, created from scratch', function (t) {
|
||||||
|
|
||||||
|
t.timeoutAfter(1000 * 60);
|
||||||
|
|
||||||
var png = new PNG({
|
var png = new PNG({
|
||||||
width: 10,
|
width: 10,
|
||||||
height: 10,
|
height: 10,
|
||||||
|
|
|
||||||
|
|
@ -20,11 +20,7 @@ fs.readdir(__dirname + '/in/', function (err, files) {
|
||||||
|
|
||||||
test('convert sync - ' + file, function (t) {
|
test('convert sync - ' + file, function (t) {
|
||||||
|
|
||||||
if (file.match(/large/)) {
|
t.timeoutAfter(1000 * 60);
|
||||||
t.timeoutAfter(1000 * 60);
|
|
||||||
} else {
|
|
||||||
t.timeoutAfter(1000);
|
|
||||||
}
|
|
||||||
|
|
||||||
var data = fs.readFileSync(__dirname + '/in/' + file);
|
var data = fs.readFileSync(__dirname + '/in/' + file);
|
||||||
try {
|
try {
|
||||||
|
|
@ -57,6 +53,9 @@ fs.readdir(__dirname + '/in/', function (err, files) {
|
||||||
});
|
});
|
||||||
|
|
||||||
test('convert async - ' + file, function (t) {
|
test('convert async - ' + file, function (t) {
|
||||||
|
|
||||||
|
t.timeoutAfter(1000 * 60);
|
||||||
|
|
||||||
fs.createReadStream(__dirname + '/in/' + file)
|
fs.createReadStream(__dirname + '/in/' + file)
|
||||||
.pipe(new PNG())
|
.pipe(new PNG())
|
||||||
.on('error', function (err) {
|
.on('error', function (err) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue