Skip to content

Commit

Permalink
Copy responses to stop mutation from breaking everything
Browse files Browse the repository at this point in the history
  • Loading branch information
christopher-dG committed Oct 28, 2020
1 parent fcd828d commit 8bbd52f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "BrokenRecord"
uuid = "bdd55f5b-6e67-4da1-a080-6086e55655a0"
authors = ["Chris de Graaf <me@cdg.dev> and contributors"]
version = "0.1.0"
version = "0.1.1"

[deps]
BSON = "fbb218c0-5317-5bc6-957e-2ee96dd4b1f0"
Expand Down
2 changes: 1 addition & 1 deletion src/recording.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@context RecordingCtx

Cassette.posthook(ctx::RecordingCtx, resp, ::typeof(request), ::Type{Union{}}, args...) =
push!(ctx.metadata.responses, resp)
push!(ctx.metadata.responses, deepcopy(resp))

function after(ctx::RecordingCtx, path)
for resp in ctx.metadata.responses
Expand Down

2 comments on commit 8bbd52f

@christopher-dG
Copy link
Member Author

Choose a reason for hiding this comment

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

@JuliaRegistrator register

Release notes:
Fixed a recording bug.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request created: JuliaRegistries/General/23809

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.1 -m "<description of version>" 8bbd52fb45774388d704e963754fbfdb9caedc54
git push origin v0.1.1

Please sign in to comment.