Skip to content

Commit

Permalink
A test for default tag timing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Jun 24, 2016
1 parent 987cb6d commit 9d3d847
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dulwich/tests/test_porcelain.py
Expand Up @@ -28,6 +28,7 @@
import shutil
import tarfile
import tempfile
import time

from dulwich import porcelain
from dulwich.diff_tree import tree_changes
Expand Down Expand Up @@ -375,6 +376,7 @@ def test_annotated(self):
self.assertTrue(isinstance(tag, Tag))
self.assertEqual(b"foo <foo@bar.com>", tag.tagger)
self.assertEqual(b"bar", tag.message)
self.assertLess(time.time() - tag.tag_time, 5)

def test_unannotated(self):
c1, c2, c3 = build_commit_graph(self.repo.object_store, [[1], [2, 1],
Expand Down

0 comments on commit 9d3d847

Please sign in to comment.