Sign in
apache
/
incubator-marvin
/
562c94ed9723fa8b5f2c33ad9615469214ec0690
/
.
/
PoCs
/
nodejs_poc
/
node_modules
/
tape
/
test
/
timeout.js
blob: 9f4cd825e7798079ccbbd9ae0beaf0110c327af1 [
file
] [
log
] [
blame
]
var
test
=
require
(
'../'
);
var
ran
=
0
;
test
(
'timeout'
,
function
(
t
)
{
t
.
pass
(
'this should run'
);
ran
++;
setTimeout
(
function
()
{
t
.
end
();
},
100
);
});
test
(
'should still run'
,
{
timeout
:
50
},
function
(
t
)
{
t
.
equal
(
ran
,
1
);
t
.
end
();
});