Remove outer setTimeout
Merge pull request #1285 from akagomez/fix-define-tests

Remove outer setTimeout