apiserver: fix sporadically failing test

If a log message was produced in less than 1ms, the test would fail
(about 50% of the time for me).

Yes. See time.Duration.String.