aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/bug_test.go16
1 files changed, 13 insertions, 3 deletions
diff --git a/tests/bug_test.go b/tests/bug_test.go
index 175df1a8..e0737d1c 100644
--- a/tests/bug_test.go
+++ b/tests/bug_test.go
@@ -11,9 +11,15 @@ func TestBugId(t *testing.T) {
t.Error(err)
}
- if len(bug1.Id()) == 0 {
- t.Fatal("Bug doesn't have a human readable identifier")
+ bug1.Append(createOp)
+
+ err = bug1.Commit(mockRepo)
+
+ if err != nil {
+ t.Fatal(err)
}
+
+ bug1.Id()
}
func TestBugValidity(t *testing.T) {
@@ -38,7 +44,11 @@ func TestBugValidity(t *testing.T) {
t.Fatal("Bug with multiple CreateOp should be invalid")
}
- bug1.Commit(mockRepo)
+ err = bug1.Commit(mockRepo)
+
+ if err != nil {
+ t.Fatal(err)
+ }
if bug1.IsValid() {
t.Fatal("Bug with multiple CreateOp should be invalid")