Skip to content

Commit

Permalink
cli: fix server test
Browse files Browse the repository at this point in the history
Signed-off-by: Javi Fontan <jfontan@gmail.com>
  • Loading branch information
jfontan committed Jun 21, 2019
1 parent b88b7de commit 10564a7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cmd/gitbase/command/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"path/filepath"
"testing"

fixtures "github.com/src-d/go-git-fixtures"
"github.com/stretchr/testify/require"
fixtures "gopkg.in/src-d/go-git-fixtures.v3"
)

func TestDirectories(t *testing.T) {
Expand Down Expand Up @@ -154,11 +154,9 @@ func TestDirectories(t *testing.T) {
}

func TestDiscoverBare(t *testing.T) {
err := fixtures.Init()
require.NoError(t, err)
defer func() {
_ = fixtures.Clean()
}
require.NoError(t, fixtures.Clean())
}()

tmpDir, err := ioutil.TempDir("", "gitbase")
require.NoError(t, err)
Expand Down

0 comments on commit 10564a7

Please sign in to comment.