aboutsummaryrefslogtreecommitdiffstats
path: root/cache/repo_cache_test.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-06-23 21:36:42 +0200
committerGitHub <noreply@github.com>2019-06-23 21:36:42 +0200
commit54e95cf36f4e50d4175f78410f3dc504a7e34179 (patch)
tree356011d5d539d259a696fe00fe6edb174b7ec268 /cache/repo_cache_test.go
parent5bae915b53ed2bb4f222db2fdc73852099b96fd2 (diff)
parent17cbe457d2d782bee914680b38fa101c9327b811 (diff)
downloadgit-bug-54e95cf36f4e50d4175f78410f3dc504a7e34179.tar.gz
Merge pull request #171 from MichaelMure/graphql-mutation-relay
Graphql mutation relay
Diffstat (limited to 'cache/repo_cache_test.go')
-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")