Please avoid sleep, but rather change the mtime (or don't rely on mtime in the code - see above). The dulwich testsuite (without compat) currently takes around a second for me when run in parallel. This would make it take twice as long.