aboutsummaryrefslogtreecommitdiffstats
path: root/bug/operation_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'bug/operation_test.go')
-rw-r--r--bug/operation_test.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/bug/operation_test.go b/bug/operation_test.go
index f9a7d191..0ddb61c2 100644
--- a/bug/operation_test.go
+++ b/bug/operation_test.go
@@ -4,11 +4,11 @@ import (
"testing"
"time"
+ "github.com/stretchr/testify/require"
+
"github.com/MichaelMure/git-bug/identity"
"github.com/MichaelMure/git-bug/repository"
"github.com/MichaelMure/git-bug/util/git"
- "github.com/MichaelMure/git-bug/util/test"
- "github.com/stretchr/testify/require"
)
func TestValidate(t *testing.T) {
@@ -80,9 +80,12 @@ func TestMetadata(t *testing.T) {
}
func TestHash(t *testing.T) {
+ repo := repository.CreateTestRepo(false)
+ defer repository.CleanupTestRepos(t, repo)
+
repos := []repository.ClockedRepo{
repository.NewMockRepoForTest(),
- test.CreateRepo(false),
+ repo,
}
for _, repo := range repos {