Make async promise test assertion more specific

This commit is contained in:
Josh Matthews 2016-09-23 00:41:02 -04:00 committed by GitHub
parent ee3f916b65
commit acf98539f2

View file

@ -60,7 +60,7 @@
t.resolvePromiseDelayed(p, 'success', 100);
return p.then(function(v) {
var end = Date.now();
assert_true(end - start > 100);
assert_greater_than_equal(end - start, 100);
assert_equals(v, 'success');
});
}, 'Native promise from async callback can be resolved');