You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
testing: delayed output flushing for t.Errorf() makes debugging failures difficult in tests #23567
It appears that t.Errorf() doesn't actually write or flush the output to stderr/stdout until the completeion of the test. This is problematic if there are interleaved log-lines in the code invoked between t.Errorf() calls, since it is then impossible to see which logs belong to which assertion (since all of the assertion failures appear after the debug output associated with different test assertions).
changed the title [-]Delayed output flushing for t.Errorf() makes debugging failures difficult in tests.[/-][+]testing: delayed output flushing for t.Errorf() makes debugging failures difficult in tests[/+]on Jan 26, 2018
Activity
ALTree commentedon Jan 26, 2018
This is a dup of #23213 (
Errorf, under the hood, just callsLogf). Closing this in favour of the older thread.[-]Delayed output flushing for t.Errorf() makes debugging failures difficult in tests.[/-][+]testing: delayed output flushing for t.Errorf() makes debugging failures difficult in tests[/+]