From 77fd45d5937c621375329417add8f26966204445 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cam=20Sau=CC=88l?= <cammsaul@gmail.com>
Date: Thu, 12 Nov 2015 22:10:32 -0800
Subject: [PATCH] squash! Mongo Relative Dates :scream_cat:

---
 src/metabase/driver/mongo/query_processor.clj | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/metabase/driver/mongo/query_processor.clj b/src/metabase/driver/mongo/query_processor.clj
index b3311dde659..b4a12d2a557 100644
--- a/src/metabase/driver/mongo/query_processor.clj
+++ b/src/metabase/driver/mongo/query_processor.clj
@@ -11,7 +11,8 @@
                     [db :as mdb]
                     [operators :refer :all]
                     [query :refer :all])
-            [metabase.db :refer :all]
+            (metabase [config :as config]
+                      [db :refer :all])
             [metabase.driver.query-processor :as qp]
             (metabase.driver.query-processor [annotate :as annotate]
                                              [interface :refer [qualified-name-components map->DateTimeField map->DateTimeValue]])
@@ -411,6 +412,6 @@
       (log-monger-form generated-pipeline)
       (->> (with-mongo-connection [_ database]
              (mc/aggregate *mongo-connection* source-table-name generated-pipeline
-                           :allow-disk-use true))
+                           :allow-disk-use (not (config/is-test?))))
            unescape-names
            unstringify-dates))))
-- 
GitLab