Wrap call to done() in setTimeout, for linux support