         (is (empty? (fs/list-dir discard-dir))))))
 
   (deftest store-v3-report
-    (let [current-time (now)
+    (let [recent-time (-> 1 seconds ago)
           command {:command (command-names :store-report)
                    :version 3
                    :payload (dissoc old-report :status)}]
+      (Thread/sleep 100)
       (test-msg-handler command publish discard-dir
         (is (= (query-to-vec "SELECT certname,configuration_version,environment_id FROM reports")
                [(with-env {:certname (:certname old-report)
                            :configuration_version (:configuration-version old-report)})]))
 
         ;;No producer_timestamp is included in v4, message received time (now) is used intead
-        (is (t/before? current-time (-> (query-to-vec "SELECT producer_timestamp FROM reports")
+        (is (t/before? recent-time (-> (query-to-vec "SELECT producer_timestamp FROM reports")
                                         first
                                         :producer_timestamp
                                         to-date-time)))

                     munge-example-report-for-storage
                     (dissoc :producer_timestamp :metrics :logs :noop)
                     utils/underscore->dash-keys)
      current-time (now)]
  (deftest store-v4-report
    (let [command {:command (command-names :store-report)
                   :version 4

            [puppetlabs.puppetdb.testutils.reports :refer [munge-example-report-for-storage]]
            [puppetlabs.puppetdb.command.constants :refer [command-names]]
            [clj-time.coerce :refer [to-timestamp to-date-time to-string]]
            [clj-time.core :as t :refer [days ago now seconds]]
            [clojure.test :refer :all]
            [clojure.tools.logging :refer [*logger-factory*]]
            [slingshot.slingshot :refer [throw+]]
