Skip to content

Commit

Permalink
add hook
Browse files Browse the repository at this point in the history
  • Loading branch information
gemmahou committed Mar 19, 2024
1 parent 060a734 commit 9a42817
Show file tree
Hide file tree
Showing 2 changed files with 168 additions and 25 deletions.
7 changes: 7 additions & 0 deletions config/tests/samples/create/harness.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,17 @@ func NewHarness(ctx context.Context, t *testing.T) *Harness {
}
r, err := recorder.NewWithOptions(opts)
if err != nil {
<<<<<<< HEAD
t.Fatalf("[VCR] Failed create vcr recorder: %v", err)
}
h.VCRRecorder = r
ret = &http.Client{Transport: h.VCRRecorder}
=======
t.Fatalf("creat vcr recorder failed: %v", err)
}
h.Rec = r
ret = &http.Client{Transport: h.Rec}
>>>>>>> e848f5336 (add hook)
return ret
}
} else {
Expand Down
Loading

0 comments on commit 9a42817

Please sign in to comment.