Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Fix flaky clojure profile test (#16058)
Browse files Browse the repository at this point in the history
* Fix flaky clojure profile test

* disable profiler test
  • Loading branch information
gigasquid authored and yzhliu committed Sep 1, 2019
1 parent 6997691 commit 36bab1c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 274 deletions.
3 changes: 1 addition & 2 deletions contrib/clojure-package/examples/profiler/test/core_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,4 @@
(deftest run-profiler
(profiler/run)
(let [new-file (clojure.java.io/as-file profiler/profiler-name)]
(is (.exists new-file))
(is (> 10000 (- (System/currentTimeMillis) (.lastModified new-file))))))
(is (.exists new-file))))

This file was deleted.

2 changes: 1 addition & 1 deletion contrib/clojure-package/integration-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ lein install
# then run through the examples
EXAMPLES_HOME=${MXNET_HOME}/contrib/clojure-package/examples
# use AWK pattern for blacklisting
TEST_CASES=`find ${EXAMPLES_HOME} -name test | awk '!/dontselect1|cnn-text-classification|gan|neural-style|pre-trained-models/'`
TEST_CASES=`find ${EXAMPLES_HOME} -name test | awk '!/dontselect1|cnn-text-classification|gan|neural-style|pre-trained-models|profiler/'`
for i in $TEST_CASES ; do
cd ${i} && lein test
done

0 comments on commit 36bab1c

Please sign in to comment.