diff --git a/sdk/internal/testframework/recording.go b/sdk/internal/testframework/recording.go index 0f1462812c59..2b008d55f3f8 100644 --- a/sdk/internal/testframework/recording.go +++ b/sdk/internal/testframework/recording.go @@ -33,7 +33,7 @@ type Recording struct { recorder *recorder.Recorder src rand.Source now *time.Time - sanitizer *RecordingSanitizer + Sanitizer *RecordingSanitizer c TestContext } @@ -104,7 +104,7 @@ func NewRecording(c TestContext, mode RecordMode) (*Recording, error) { rec.SetMatcher(recording.matchRequest) // wire up the sanitizer - DefaultSanitizer(rec) + recording.Sanitizer = DefaultSanitizer(rec) return recording, err }