chore: disable go-vcr's internal "sleep" to make tests much faster

Andrey Nering created

Change summary

providertests/recorder_test.go | 1 +
1 file changed, 1 insertion(+)

Detailed changes

providertests/recorder_test.go 🔗

@@ -19,6 +19,7 @@ func newRecorder(t *testing.T) *recorder.Recorder {
 		cassetteName,
 		recorder.WithMode(recorder.ModeRecordOnce),
 		recorder.WithMatcher(customMatcher(t)),
+		recorder.WithSkipRequestLatency(true), // disable sleep to simulate response time, makes tests faster
 		recorder.WithHook(hookRemoveHeaders, recorder.AfterCaptureHook),
 	)
 	if err != nil {