Well, not really. Before I moved the "delay and refresh" logic out of this file, it was doing a refresh anyway to avoid the ES-imposed delay on indexing a file.

That exact same dely-and-refresh logic is just now in a test util file that we use throughout the unit tests instead. :( However I improved the length it takes to do unit tests somewhat along the way.