Commit 39a99a5b authored by Ting Yuan's avatar Ting Yuan Committed by GitHub

fix goroutine leaks in TestRoute53 (#5070)

Signed-off-by: default avatarTing Yuan <yuanting@ict.ac.cn>
parent 7ee128a5
......@@ -77,7 +77,8 @@ func (fakeRoute53) ListResourceRecordSetsPagesWithContext(_ aws.Context, in *rou
}
func TestRoute53(t *testing.T) {
ctx := context.Background()
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
r, err := New(ctx, fakeRoute53{}, map[string][]string{"bad.": {"0987654321"}}, time.Minute)
if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment