Description
autosplit_heuristics.js uses bulk insert and then checks the count of chunks. Since autosplitting happens asynchronously on the shard, this could lead to non-deterministic chunk counts. Instead we will wait for chunk splitting to finish after each insert.