diff options
author | Stan Hu <stanhu@gmail.com> | 2020-05-08 15:40:18 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2020-05-08 15:40:18 -0700 |
commit | c0cf314c5722a4f7ec0a1f355d23fa2511344989 (patch) | |
tree | 96898bec50690d0d34eb9ead815b8ef4a89a40ce /bin | |
parent | 1adadc2e299529e805aae3dac7c2579b88c8dae7 (diff) | |
download | gitlab-shell-sh-add-http-status-code.tar.gz |
Fix race conditions in testssh-add-http-status-code
Calling logrus hook.LastEntry() can lead to race conditions. Use
AllEntries instead:
https://github.com/sirupsen/logrus/blob/60c74ad9be0d874af0ab0daef6ab07c5c5911f0d/hooks/test/test.go#L77
Closes https://gitlab.com/gitlab-org/gitlab-shell/-/issues/450
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions