Skip to content

Commit

Permalink
add hook
Browse files Browse the repository at this point in the history
  • Loading branch information
gemmahou committed Mar 25, 2024
1 parent 69810ab commit e2dcd78
Show file tree
Hide file tree
Showing 2 changed files with 286 additions and 10 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 @@ -327,10 +327,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 e2dcd78

Please sign in to comment.