Skip to content

Commit 966b249

Browse files
committed
chore: disable go-vcr's internal "sleep" to make tests much faster
1 parent d986aa6 commit 966b249

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

providertests/recorder_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ func newRecorder(t *testing.T) *recorder.Recorder {
1919
cassetteName,
2020
recorder.WithMode(recorder.ModeRecordOnce),
2121
recorder.WithMatcher(customMatcher(t)),
22+
recorder.WithSkipRequestLatency(true), // disable sleep to simulate response time, makes tests faster
2223
recorder.WithHook(hookRemoveHeaders, recorder.AfterCaptureHook),
2324
)
2425
if err != nil {

0 commit comments

Comments
 (0)