aboutsummaryrefslogtreecommitdiffstats
path: root/cache
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-06-16 21:40:45 +0200
committerMichael Muré <batolettre@gmail.com>2019-06-16 21:40:45 +0200
commitbc03a89aa76cad37daf8cd4efdea463a9569c519 (patch)
treede48b53cefb9006bfa5029a7da512a6abc21885b /cache
parentb2f8572c4493205535558fb9320689aaf4774dc1 (diff)
downloadgit-bug-bc03a89aa76cad37daf8cd4efdea463a9569c519.tar.gz
fix tests
Diffstat (limited to 'cache')
-rw-r--r--cache/repo_cache_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/cache/repo_cache_test.go b/cache/repo_cache_test.go
index 7e38b6bc..3e81674a 100644
--- a/cache/repo_cache_test.go
+++ b/cache/repo_cache_test.go
@@ -37,11 +37,11 @@ func TestCache(t *testing.T) {
require.Len(t, cache.identities, 2)
// Create a bug
- bug1, err := cache.NewBug("title", "message")
+ bug1, _, err := cache.NewBug("title", "message")
require.NoError(t, err)
// It's possible to create two identical bugs
- bug2, err := cache.NewBug("title", "message")
+ bug2, _, err := cache.NewBug("title", "message")
require.NoError(t, err)
// two identical bugs yield a different id
@@ -125,7 +125,7 @@ func TestPushPull(t *testing.T) {
require.NoError(t, err)
// Create a bug in A
- _, err = cacheA.NewBug("bug1", "message")
+ _, _, err = cacheA.NewBug("bug1", "message")
require.NoError(t, err)
// A --> remote --> B
@@ -145,7 +145,7 @@ func TestPushPull(t *testing.T) {
require.NoError(t, err)
// B --> remote --> A
- _, err = cacheB.NewBug("bug2", "message")
+ _, _, err = cacheB.NewBug("bug2", "message")
require.NoError(t, err)
_, err = cacheB.Push("origin")