From e5973c569b398e24aaf1afd589bee578ff7346fa Mon Sep 17 00:00:00 2001 From: Michael Burman Date: Wed, 10 Apr 2024 16:29:03 +0300 Subject: [PATCH] Use clojure.string/includes? instead of contains --- test/com/datastax/configbuilder/operator_test.clj | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/com/datastax/configbuilder/operator_test.clj b/test/com/datastax/configbuilder/operator_test.clj index 9bdc08b..5998043 100644 --- a/test/com/datastax/configbuilder/operator_test.clj +++ b/test/com/datastax/configbuilder/operator_test.clj @@ -26,8 +26,7 @@ :definitions-location test-data/definitions-location}) (is false "Malformed input was not detected") (catch Exception e - (is (contains "Unexpected end-of-input within/between Object entries" - (.getMessage e)) + (is (clojure.string/includes? (.getMessage e) "Unexpected end-of-input within/between Object entries") "Wrong error thrown")))) (testing "ensure all files generated" (sut/make-configs