]> source.dussan.org Git - gitea.git/commit
archiver: tests: Test* is run in a separate context than TestMain
authorKyle Evans <kevans@FreeBSD.org>
Tue, 5 May 2020 22:49:26 +0000 (17:49 -0500)
committerKyle Evans <kevans@FreeBSD.org>
Tue, 5 May 2020 22:49:26 +0000 (17:49 -0500)
commitbe77f9ed593bb6aec0a35b617b059f920e6b4481
tree411af9d80f207d26505780f8c01f95f92cb5424c
parent759b4d1eec9bc6cfe11bce679cec72a95c1c8317
archiver: tests: Test* is run in a separate context than TestMain

We must setup the mutex/cond variables at the beginning of any test that's
going to use it, or else these will be nil when the test is actually ran.
services/archiver/archiver_test.go