Skip to content

Commit b3ccf54

Browse files
committed
cli: fix server test
Signed-off-by: Javi Fontan <[email protected]>
1 parent f27ef50 commit b3ccf54

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

cmd/gitbase/command/server_test.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"path/filepath"
88
"testing"
99

10+
fixtures "github.com/src-d/go-git-fixtures"
1011
"github.com/stretchr/testify/require"
11-
fixtures "gopkg.in/src-d/go-git-fixtures.v3"
1212
)
1313

1414
func TestDirectories(t *testing.T) {
@@ -154,11 +154,9 @@ func TestDirectories(t *testing.T) {
154154
}
155155

156156
func TestDiscoverBare(t *testing.T) {
157-
err := fixtures.Init()
158-
require.NoError(t, err)
159157
defer func() {
160-
_ = fixtures.Clean()
161-
}
158+
require.NoError(t, fixtures.Clean())
159+
}()
162160

163161
tmpDir, err := ioutil.TempDir("", "gitbase")
164162
require.NoError(t, err)

0 commit comments

Comments
 (0)