From d3c849b41e7e798e2440bf02df7cfbec3fbf23d4 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Thu, 4 Sep 2025 11:45:39 -0300 Subject: [PATCH] chore: disable go-vcr's internal "sleep" to make tests much faster --- providertests/recorder_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/providertests/recorder_test.go b/providertests/recorder_test.go index 0ff64571e5a0a0e658c5c89821b1084b4abb9def..f1710e7cd6b9867ad1deab70f86240a103f3c5b3 100644 --- a/providertests/recorder_test.go +++ b/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 {