summaryrefslogtreecommitdiff
path: root/internal/testhelper/testhelper.go
Commit message (Collapse)AuthorAgeFilesLines
* refactor: move away from ioutil (deprecated)feistel2021-08-191-2/+1
|
* Remove some unreliable testsNick Thomas2021-07-301-25/+0
| | | | | | | | | | | | | Logrus buffers its output internally, which makes these tests fail intermittently. They're also not a good example to follow generally. We now have acceptance tests that exercise this functionality so I'm pretty relaxed about losing the expectations. However, we can test them by inspecting the server-received metadata too, so there's no loss of coverage here. The move from logrus to labkit for logging also makes these tests hard to justify keeping.
* Fix formatting via make fmtStan Hu2021-07-261-1/+1
|
* Refactor testhelper.PrepareTestRootDir using t.CleanupIgor Drozdov2021-07-141-29/+10
|
* Replace cleanup functions with t.CleanupIgor Drozdov2021-03-171-1/+1
| | | | | In this case we don't need to propagate cleanup function. It simplifies the code.
* Fix race conditions with logrus testingsh-fix-logrus-raceStan Hu2020-05-111-0/+16
| | | | | | | | | logrus fires a Goroutine to write logs, so the tests could fail if they checked the event queue before the logrus have fired. Since there isn't an easy way to flush all outstanding hooks, we just retry every 100 ms for up to a second for log to arrive in the queue. Closes https://gitlab.com/gitlab-org/gitlab-shell/-/issues/450
* Log internal HTTP requestsStan Hu2020-03-101-0/+9
| | | | | | | This restores the previous behavior of logging the success and failures of internal HTTP requests. Part of https://gitlab.com/gitlab-org/gitlab/issues/207916
* Move go code up one levelNick Thomas2019-10-181-0/+93