From 834b4ddab609b0201f0bd09d2aff8a77f9eef3f0 Mon Sep 17 00:00:00 2001 From: Renato Alves Date: Fri, 27 Mar 2015 10:07:57 +0000 Subject: [PATCH] Tests: Use faketime instead of time.sleep. --- test/export.t | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/export.t b/test/export.t index 0f2bb5c9c..1a666f15f 100755 --- a/test/export.t +++ b/test/export.t @@ -29,10 +29,8 @@ import datetime import json import sys -import time import numbers import os -import re import unittest # Ensure python finds the local simpletap module @@ -109,7 +107,7 @@ class TestExportCommand(TestCase): def test_export_end(self): self.t(('1', 'start')) - time.sleep(2) + self.t.faketime("+5s") self.t(('1', 'done')) self.assertTimestamp(self.export(1)['end'])