Fix app generator test hanging.

This fixes an issue (introduced in 8941d5a3) that was preventing `AppGeneratorTest` from running.