diff options
author | Pavlo Strokov <pstrokov@gitlab.com> | 2021-11-17 00:26:13 +0300 |
---|---|---|
committer | Pavlo Strokov <pstrokov@gitlab.com> | 2021-11-17 12:34:01 +0300 |
commit | f81371633a0402e6f114647e2dbbe6941274aa7b (patch) | |
tree | 6ffc6b8836b34e38118530aa4c5f4ff1114f010f | |
parent | 284a2395b24fcbf1614f486a190379bf42eac6a6 (diff) |
log: Flakiness in TestPayloadBytes
Sometimes it happens that the log contains not
enough entries in the output. It may happen because
method handling happens faster than flush of the
logger. The checks now start after we ensure all
log entries are in place by shutting down the server.
Closes: https://gitlab.com/gitlab-org/gitaly/-/issues/3918
-rw-r--r-- | internal/log/log_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/log/log_test.go b/internal/log/log_test.go index fcc3d0573..952af89c9 100644 --- a/internal/log/log_test.go +++ b/internal/log/log_test.go @@ -123,6 +123,8 @@ func TestPayloadBytes(t *testing.T) { } wg.Wait() + srv.GracefulStop() + entries := hook.AllEntries() require.Len(t, entries, 4) var unary, stream int |