File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -37,21 +37,21 @@ func (c *ProdExecutor) SetRedirectPolicy(policy *func(req *http.Request, via []*
3737// Mocking
3838
3939type MockExecutor struct {
40- lockedResponseCode int
40+ LockedResponseCode int
4141}
4242
4343func (m * MockExecutor ) CloseIdleConnections () {
4444 panic ("invalid function call" )
4545}
4646
4747func (m * MockExecutor ) Do (req * http.Request ) (* http.Response , error ) {
48- statusString := http .StatusText (m .lockedResponseCode )
48+ statusString := http .StatusText (m .LockedResponseCode )
4949
5050 if statusString == "" {
51- return nil , fmt .Errorf ("unknown response code requested: %d" , m .lockedResponseCode )
51+ return nil , fmt .Errorf ("unknown response code requested: %d" , m .LockedResponseCode )
5252 }
5353
54- response := & http.Response {StatusCode : m .lockedResponseCode }
54+ response := & http.Response {StatusCode : m .LockedResponseCode }
5555
5656 return response , nil
5757}
You can’t perform that action at this time.
0 commit comments