It sounds like this isn't properly waiting until the tests are done, like line 63 tries to make it do.