aboutsummaryrefslogtreecommitdiffstats
path: root/tests/operation_iterator_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/operation_iterator_test.go')
-rw-r--r--tests/operation_iterator_test.go13
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/operation_iterator_test.go b/tests/operation_iterator_test.go
index 52778e71..524a639c 100644
--- a/tests/operation_iterator_test.go
+++ b/tests/operation_iterator_test.go
@@ -5,6 +5,7 @@ import (
"github.com/MichaelMure/git-bug/operations"
"github.com/MichaelMure/git-bug/repository"
"testing"
+ "time"
)
var (
@@ -13,11 +14,13 @@ var (
Email: "rene@descartes.fr",
}
- createOp = operations.NewCreateOp(rene, "title", "message", nil)
- setTitleOp = operations.NewSetTitleOp(rene, "title2", "title1")
- addCommentOp = operations.NewAddCommentOp(rene, "message2", nil)
- setStatusOp = operations.NewSetStatusOp(rene, bug.ClosedStatus)
- labelChangeOp = operations.NewLabelChangeOperation(rene, []bug.Label{"added"}, []bug.Label{"removed"})
+ unix = time.Now().Unix()
+
+ createOp = operations.NewCreateOp(rene, unix, "title", "message", nil)
+ setTitleOp = operations.NewSetTitleOp(rene, unix, "title2", "title1")
+ addCommentOp = operations.NewAddCommentOp(rene, unix, "message2", nil)
+ setStatusOp = operations.NewSetStatusOp(rene, unix, bug.ClosedStatus)
+ labelChangeOp = operations.NewLabelChangeOperation(rene, unix, []bug.Label{"added"}, []bug.Label{"removed"})
)
func TestOpIterator(t *testing.T) {