You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: stub AreCredsFromEnvVars in app init to speed tests by 70s (#2465)
🤦 Previously, we were calling sessions.AreCredsFromEnvVars in our tests
which would timeout after 10s:
https://github.com/aws/copilot-cli/blob/f2f0ee317e01b9da85ab72ecd64481c10658cd05/internal/pkg/aws/sessions/sessions.go#L28
Since the test TestInitAppOpts_Ask has 7 testcases it would take 70s to
test the cli package. With this one weird trick™️ and replacing the
functional call with a fake, we speed up our tests by 70s.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
0 commit comments