Comment time bomb test out (#16452)

This commit is contained in:
Icaro Motta 2023-06-30 12:47:24 +00:00 committed by GitHub
parent f015eb929a
commit 186ac482ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 74 additions and 74 deletions

View File

@ -1,9 +1,7 @@
(ns utils.datetime-test (ns utils.datetime-test
(:require [cljs-time.coerce :as time-coerce] (:require [cljs-time.coerce :as time-coerce]
[cljs-time.core :as t] [cljs-time.core :as t]
[cljs-time.format :as t.format] [cljs.test :refer-macros [deftest testing is]]
[cljs.test :refer-macros [deftest testing is are]]
[clojure.string :as string]
[utils.datetime :as datetime] [utils.datetime :as datetime]
[utils.i18n-goog :as i18n-goog])) [utils.i18n-goog :as i18n-goog]))
@ -192,7 +190,9 @@
#'utils.datetime/medium-date-time-format)] #'utils.datetime/medium-date-time-format)]
(is (= (datetime/day-relative epoch) "01 gen 1970, 12:00:00 AM"))))) (is (= (datetime/day-relative epoch) "01 gen 1970, 12:00:00 AM")))))
(deftest format-mute-till-test ;; TODO(@ibrkhalil): This test sometimes fail in the CI. Make the test agnostic
;; of the current time and timezone.
#_(deftest format-mute-till-test
(let [remove-msecs #(string/replace % #"\.\w*Z" "Z") (let [remove-msecs #(string/replace % #"\.\w*Z" "Z")
time-str-to-obj #(t.format/parse (remove-msecs (time-coerce/to-string %))) time-str-to-obj #(t.format/parse (remove-msecs (time-coerce/to-string %)))
curr-time (t/now) curr-time (t/now)