Skip to content

Fix test-double in Babashka#313

Merged
marcobiscaro2112 merged 1 commit into
mainfrom
fix-test-double-bb
Jul 3, 2026
Merged

Fix test-double in Babashka#313
marcobiscaro2112 merged 1 commit into
mainfrom
fix-test-double-bb

Conversation

@marcobiscaro2112

Copy link
Copy Markdown
Collaborator

deftype implementing a Java interface is not supported by Babashaka.

This applies the same fix we used in the production client (89580ed) to the test-double client.

Fixes #312

deftype implementing a Java interface is not supported by Babashaka.

This applies the same fix we used in the production client (89580ed) to the test-double client.

Fixes #312

;; ->Client is intended for internal use
(alter-meta! #'->Client assoc :skip-wiki true)
(defn- invoke* [client {:keys [op request] :as op-map} info handlers]

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extracted new fn so we can call it from both -invoke and -invoke-async. Can't use .-invoke with reify.

@scottbale scottbale left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@marcobiscaro2112 marcobiscaro2112 merged commit 15b85c6 into main Jul 3, 2026
16 checks passed
@marcobiscaro2112 marcobiscaro2112 deleted the fix-test-double-bb branch July 3, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The test-double client does not work with Babashka

3 participants