diff options
author | Michael Muré <batolettre@gmail.com> | 2018-09-25 17:56:58 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-09-25 17:56:58 +0200 |
commit | 40c6e64e4badfd543dc98237e1aeb3d8958cfe90 (patch) | |
tree | 03a992d71a1bfa3f069a5ef179649c0cf8479764 /operations/create_test.go | |
parent | 5d7c3a76af85a857a6bb0bff5bac5282c0a9908f (diff) | |
download | git-bug-40c6e64e4badfd543dc98237e1aeb3d8958cfe90.tar.gz |
cache: add raw edit functions to allow setting up the author, the timestamp and the metadatas
Diffstat (limited to 'operations/create_test.go')
-rw-r--r-- | operations/create_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/operations/create_test.go b/operations/create_test.go index a20472d3..c32b2868 100644 --- a/operations/create_test.go +++ b/operations/create_test.go @@ -4,6 +4,7 @@ import ( "github.com/MichaelMure/git-bug/bug" "reflect" "testing" + "time" ) func TestCreate(t *testing.T) { @@ -14,7 +15,9 @@ func TestCreate(t *testing.T) { Email: "rene@descartes.fr", } - create := NewCreateOp(rene, "title", "message", nil) + unix := time.Now().Unix() + + create := NewCreateOp(rene, unix, "title", "message", nil) snapshot = create.Apply(snapshot) |