Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlo Strokov <pstrokov@gitlab.com>2021-11-17 00:26:13 +0300
committerPavlo Strokov <pstrokov@gitlab.com>2021-11-17 12:34:01 +0300
commitf81371633a0402e6f114647e2dbbe6941274aa7b (patch)
tree6ffc6b8836b34e38118530aa4c5f4ff1114f010f
parent284a2395b24fcbf1614f486a190379bf42eac6a6 (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.go2
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