Skip to content

Commit

Permalink
removed ugly text to its own def
Browse files Browse the repository at this point in the history
  • Loading branch information
milt committed Jan 23, 2024
1 parent a3b9b77 commit f7c2a46
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/test/lrsql/ops/query/reaction_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@
bk ds {:trigger-id trigger-id})))
(finally (component/stop sys'))))))

(def invalid-statement-spec-error-str
"Reaction Invalid Statement Error - Spec Error: #:statement{:foo \"mailto:[email protected]\"} - failed: (contains? % :statement/actor) spec: :xapi-schema.spec/statement
#:statement{:foo \"mailto:[email protected]\"} - failed: (contains? % :statement/verb) spec: :xapi-schema.spec/statement
#:statement{:foo \"mailto:[email protected]\"} - failed: (contains? % :statement/object) spec: :xapi-schema.spec/statement
")

(deftest query-statement-reactions-invalid-statement-error-test
;; Turn off instrumentation for this one
;; This will keep the instrumentation error from clobbering
Expand Down Expand Up @@ -192,12 +198,8 @@
[{:reaction-id reaction-id
:trigger-id trigger-id
:error
{:type "ReactionInvalidStatementError",
:message
"Reaction Invalid Statement Error - Spec Error: #:statement{:foo \"mailto:[email protected]\"} - failed: (contains? % :statement/actor) spec: :xapi-schema.spec/statement
#:statement{:foo \"mailto:[email protected]\"} - failed: (contains? % :statement/verb) spec: :xapi-schema.spec/statement
#:statement{:foo \"mailto:[email protected]\"} - failed: (contains? % :statement/object) spec: :xapi-schema.spec/statement
"}}]}
{:type "ReactionInvalidStatementError",
:message invalid-statement-spec-error-str}}]}
(qr/query-statement-reactions
bk ds {:trigger-id trigger-id})))
(finally (component/stop sys'))))))

0 comments on commit f7c2a46

Please sign in to comment.