Skip to content

Commit

Permalink
Update checker interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbckt committed Feb 27, 2019
1 parent 046fc9f commit 2da55aa
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/jepsen/faunadb/internal.clj
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
"Checks internal consistency of ops."
[]
(reify checker/Checker
(check [this test model history opts]
(check [this test history opts]
(let [errors (->> history
(r/filter op/ok?)
(r/mapcat op-errors)
Expand Down
8 changes: 4 additions & 4 deletions src/jepsen/faunadb/monotonic.clj
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
independent/checker."
[]
(reify checker/Checker
(check [_ test model history opts]
(check [_ test history opts]
(let [history (r/filter (comp #{:read :inc} :f) history)
; Check that register values are monotonic
value-errs (->> history
Expand Down Expand Up @@ -208,7 +208,7 @@
and register values is globally monotonic."
[]
(reify checker/Checker
(check [_ test model history opts]
(check [_ test history opts]
(let [errs (->> history
(r/filter op/ok?)
(r/filter (comp #{:read-at :inc} :f))
Expand Down Expand Up @@ -292,7 +292,7 @@
"Plots interesting bits of the value as seen by each process history."
[]
(reify checker/Checker
(check [this test model history opts]
(check [this test history opts]
; Identify interesting regions
(let [; Set aside nemesis operations so we can plot them later
nemesis-history (r/filter (comp #{:nemesis} :process) history)
Expand Down Expand Up @@ -334,7 +334,7 @@
not-found result. Let's make sure of that."
[]
(reify checker/Checker
(check [_ test model history opts]
(check [_ test history opts]
(let [errs (->> history
(r/filter op/fail?)
(r/filter (comp #{:not-found} :error))
Expand Down
4 changes: 2 additions & 2 deletions src/jepsen/faunadb/multimonotonic.clj
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
the system was internally inconsistent."
[]
(reify checker/Checker
(check [this test model history opts]
(check [this test history opts]
(let [errs (->> history
(filter op/ok?)
(filter (comp :ts :value))
Expand Down Expand Up @@ -303,7 +303,7 @@
like an OK start."
[]
(reify checker/Checker
(check [this test model history opts]
(check [this test history opts]
(try+ (let [order (->> history
(r/filter op/ok?)
(r/filter (comp #{:read} :f))
Expand Down
2 changes: 1 addition & 1 deletion src/jepsen/faunadb/pages.clj
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
expressible as the union of some set of adds."
[]
(reify checker/Checker
(check [this test model history opts]
(check [this test history opts]
(let [adds (filter #(= :add (:f %)) history)
invokes (->> adds
(r/filter op/invoke?)
Expand Down

0 comments on commit 2da55aa

Please sign in to comment.