multi: replace defer cleanup with t.Cleanup
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
This commit is contained in:
29 files changed
+393
-606
No files matched your search
@@ -13,7 +13,7 @@ import (
|
||||
)
|
||||
|
||||
// timeout implements a test level timeout.
|
||||
func timeout(t *testing.T) func() {
|
||||
func timeout() func() {
|
||||
done := make(chan struct{})
|
||||
go func() {
|
||||
select {
|
||||
|
||||
Reference in new issue
Block a user