An attempt to fix the flaky travis CI test.

Review by @havocp