git/odb: use time.Now() in TestCommitDecoding test

This commit is contained in:
Taylor Blau 2017-05-15 16:13:21 -06:00
parent e0c4f60a37
commit 19c34c74c2

@ -46,9 +46,8 @@ func TestCommitEncoding(t *testing.T) {
}
func TestCommitDecoding(t *testing.T) {
when := time.Unix(1494258422, 0)
author := &Signature{Name: "John Doe", Email: "john@example.com", When: when}
committer := &Signature{Name: "Jane Doe", Email: "jane@example.com", When: when}
author := &Signature{Name: "John Doe", Email: "john@example.com", When: time.Now()}
committer := &Signature{Name: "Jane Doe", Email: "jane@example.com", When: time.Now()}
p1 := []byte("aaaaaaaaaaaaaaaaaaaa")
p2 := []byte("bbbbbbbbbbbbbbbbbbbb")