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

Admin_db_clean_cmd test Part I #6435

Merged
merged 4 commits into from
Oct 29, 2024
Merged

Conversation

bowenxia
Copy link
Member

@bowenxia bowenxia commented Oct 28, 2024

What changed?
Add test for admin_db_clean_cmd failure cases

Why?
code coverage

How did you test it?
unit test

Potential risks

Release notes

Documentation Changes

@@ -1039,6 +1039,8 @@ func TestGenerateReport(t *testing.T) {
// Validate the output captured by testIOHandler
assert.Equal(t, tt.expectedOutput, ioHandler.outputBytes.String())
}

os.Remove("test-report.csv")
Copy link
Member Author

@bowenxia bowenxia Oct 28, 2024

Choose a reason for hiding this comment

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

In one previous PR, I created a file called test-report.csv. in a test case and forgot to delete it.

@bowenxia bowenxia changed the title Admin_db_clean_cmd test Admin_db_clean_cmd test Part I Oct 28, 2024
@bowenxia bowenxia enabled auto-merge (squash) October 28, 2024 22:42
@bowenxia bowenxia merged commit 0a3a040 into master Oct 29, 2024
18 of 19 checks passed
@bowenxia bowenxia deleted the xbowen/Admin_db_clean_cmd_test_00 branch October 29, 2024 00:03
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.

2 participants