plugin/route53: remove amazon intialization from init (#3348)
Don't perform this code in the init, this allocated 1 megabyte of memory even if you don't use the plugin. Looks to be only there for testing, adding a comment to reflect that. Fixes #3342 Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
parent
8fde7407d9
commit
aa96d6b443
2 changed files with 8 additions and 14 deletions
|
@ -9,7 +9,7 @@ import (
|
|||
)
|
||||
|
||||
func TestSetupRoute53(t *testing.T) {
|
||||
f := func(credential *credentials.Credentials) route53iface.Route53API {
|
||||
f = func(credential *credentials.Credentials) route53iface.Route53API {
|
||||
return fakeRoute53{}
|
||||
}
|
||||
|
||||
|
@ -73,7 +73,7 @@ func TestSetupRoute53(t *testing.T) {
|
|||
|
||||
for _, test := range tests {
|
||||
c := caddy.NewTestController("dns", test.body)
|
||||
if err := setup(c, f); (err == nil) == test.expectedError {
|
||||
if err := setup(c); (err == nil) == test.expectedError {
|
||||
t.Errorf("Unexpected errors: %v", err)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue