Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix most of the unit tests #76

Merged
merged 4 commits into from
Jun 14, 2022
Merged

Fix most of the unit tests #76

merged 4 commits into from
Jun 14, 2022

Conversation

snay2
Copy link
Contributor

@snay2 snay2 commented Jun 13, 2022

Issue #, if available: N/A

Description of changes:

After several recent changes, the unit tests broke, but since we don't run them automatically on PRs via GitHub Actions, it took a while for us to notice. I intend to get the tests running on PRs in the future, but getting them passing again locally is the first step.

Here are the tests I fixed (they're each broken into a separate commit if you want to review individually):

The only one unit test that isn't passing after this is TestAskQuestion_AnyStringAnswer(), even though it seems correct.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@snay2 snay2 requested a review from a team as a code owner June 13, 2022 21:29
@@ -56,7 +56,7 @@ func TestGetTagAsFilter(t *testing.T) {
actualTagFilter, err := tag.GetTagAsFilter(*tags)
now := time.Now()
zone, _ := now.Zone()
currTimeStr := fmt.Sprintf("%d-%d-%d %d:%d:%d %s", now.Year(), now.Month(), now.Day(), now.Hour(), now.Minute(),
currTimeStr := fmt.Sprintf("%04d-%02d-%02d %02d:%02d:%02d %s", now.Year(), now.Month(), now.Day(), now.Hour(), now.Minute(),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@GavinBurris42 This one I copied over directly from your fork https://github.com/GavinBurris42/aws-simple-ec2-cli/pull/1/files so we can get it into main faster.

Copy link
Contributor

@LikithaVemulapalli LikithaVemulapalli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants