Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more weird ordering issues... #5

Closed
isaacs opened this issue Nov 25, 2012 · 0 comments
Closed

more weird ordering issues... #5

isaacs opened this issue Nov 25, 2012 · 0 comments

Comments

@isaacs
Copy link
Contributor

isaacs commented Nov 25, 2012

Because sub tests are unshifted onto the pending queue, it makes for some surprising behavior:

test(function (t) {
  t.test('first', function (t) {
    t.pass('first');
    t.end();
  });
  t.test('second', function (t) {
    t.pass('second');
    t.end();
  });
  t.pass('parent');
  t.end();
})

Output is parent, second, first.

@ghost ghost closed this as completed in 7b05086 Nov 25, 2012
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant