aboutsummaryrefslogtreecommitdiffstats
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
parentb2f8572c4493205535558fb9320689aaf4774dc1 (diff)
downloadgit-bug-bc03a89aa76cad37daf8cd4efdea463a9569c519.tar.gz
fix tests
-rw-r--r--cache/repo_cache_test.go8
-rw-r--r--commands/select/select_test.go6
-rw-r--r--graphql/graph/gen_graph.go2
-rw-r--r--graphql/schema/root.graphql2
4 files changed, 9 insertions, 9 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")
diff --git a/commands/select/select_test.go b/commands/select/select_test.go
index b9594fee..393ec88b 100644
--- a/commands/select/select_test.go
+++ b/commands/select/select_test.go
@@ -33,14 +33,14 @@ func TestSelect(t *testing.T) {
require.NoError(t, err)
for i := 0; i < 10; i++ {
- _, err := repoCache.NewBugRaw(rene, time.Now().Unix(), "title", "message", nil, nil)
+ _, _, err := repoCache.NewBugRaw(rene, time.Now().Unix(), "title", "message", nil, nil)
require.NoError(t, err)
}
// and two more for testing
- b1, err := repoCache.NewBugRaw(rene, time.Now().Unix(), "title", "message", nil, nil)
+ b1, _, err := repoCache.NewBugRaw(rene, time.Now().Unix(), "title", "message", nil, nil)
require.NoError(t, err)
- b2, err := repoCache.NewBugRaw(rene, time.Now().Unix(), "title", "message", nil, nil)
+ b2, _, err := repoCache.NewBugRaw(rene, time.Now().Unix(), "title", "message", nil, nil)
require.NoError(t, err)
err = Select(repoCache, b1.Id())
diff --git a/graphql/graph/gen_graph.go b/graphql/graph/gen_graph.go
index e788b2a2..36dc9735 100644
--- a/graphql/graph/gen_graph.go
+++ b/graphql/graph/gen_graph.go
@@ -2286,7 +2286,7 @@ type Repository {
}
type Mutation {
- """create a new bug"""
+ """Create a new bug"""
newBug(input: NewBugInput!): NewBugPayload!
"""Add a new comment to a bug"""
addComment(input: AddCommentInput!): AddCommentPayload!
diff --git a/graphql/schema/root.graphql b/graphql/schema/root.graphql
index 3b497d95..4a89c825 100644
--- a/graphql/schema/root.graphql
+++ b/graphql/schema/root.graphql
@@ -6,7 +6,7 @@ type Query {
}
type Mutation {
- """create a new bug"""
+ """Create a new bug"""
newBug(input: NewBugInput!): NewBugPayload!
"""Add a new comment to a bug"""
addComment(input: AddCommentInput!): AddCommentPayload!