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 []*
37
37
// Mocking
38
38
39
39
type MockExecutor struct {
40
- lockedResponseCode int
40
+ LockedResponseCode int
41
41
}
42
42
43
43
func (m * MockExecutor ) CloseIdleConnections () {
44
44
panic ("invalid function call" )
45
45
}
46
46
47
47
func (m * MockExecutor ) Do (req * http.Request ) (* http.Response , error ) {
48
- statusString := http .StatusText (m .lockedResponseCode )
48
+ statusString := http .StatusText (m .LockedResponseCode )
49
49
50
50
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 )
52
52
}
53
53
54
- response := & http.Response {StatusCode : m .lockedResponseCode }
54
+ response := & http.Response {StatusCode : m .LockedResponseCode }
55
55
56
56
return response , nil
57
57
}
You can’t perform that action at this time.
0 commit comments