Skip to content

Commit 5d07e33

Browse files
committed
Enable replayable VCR interactions
Allow cassette interactions to be replayed multiple times by adding WithReplayableInteractions(true) to the recorder.
1 parent ad9798b commit 5d07e33

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/fake/proxy.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ func StartProxyWithOptions(
6868
recorder.WithMatcher(matcher),
6969
recorder.WithSkipRequestLatency(true),
7070
recorder.WithHook(RemoveHeadersHook, recorder.AfterCaptureHook),
71+
recorder.WithReplayableInteractions(true),
7172
)
7273
if err != nil {
7374
return "", nil, fmt.Errorf("failed to create VCR recorder: %w", err)

0 commit comments

Comments
 (0)