Skip to content

Commit

Permalink
test for local-only behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcardon committed Feb 13, 2024
1 parent b3152c8 commit e9f3f14
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/pact/toplevel.repl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
(begin-tx)

;; ease restrictions requiring namespaced keysets
(env-exec-config ["DisablePact44", "DisablePact410"])
(env-exec-config ["DisablePact44"])
;; define-keyset success case
(define-keyset 'k (sig-keyset))

Expand Down Expand Up @@ -71,3 +71,11 @@
"old env unchanged"
"hello"
(read-msg 'b))

; Pact 4.11 list-modules moved to local only
(env-exec-config ["DisablePact411", "DisableHistoryInTransactionalMode"])
(expect "list-modules is isn't local-only after pact 4.11" ["repl-natives" "toplevel"] (list-modules))


(env-exec-config ["DisableHistoryInTransactionalMode"])
(expect-failure "list-modules is local-only after pact 4.11" (list-modules))

0 comments on commit e9f3f14

Please sign in to comment.