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

[Copp]Refactor coppmgr mock tests #39

Closed
wants to merge 1 commit into from
Closed

Conversation

dgsudharsan
Copy link
Owner

What I did
Refactoring coppmgr mock tests

Why I did it
After migration to bookworm, coppmgr tests started failing due to the use of sudo commands.

[----------] 1 test from CoppMgrTest
[ RUN      ] CoppMgrTest.CoppTest
sudo: pam_open_session: Too many open files
sudo: policy plugin failed session initialization
copp_ut.cpp:28: Failure
Expected equality of these values:
 status
Which is: 256
 0
CoppMgrTest.CoppTest (107 ms)
1 test from CoppMgrTest (107 ms total)

Avoided the logic of replacing the files using sudo by slightly refactoring the code.
How I verified it
Run the UT to verify.

Details if related

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