-
Notifications
You must be signed in to change notification settings - Fork 703
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
chore: remove global variable for better unit testing #4217
Comments
I would like to work on this. Could you assign this to me? |
Kindly review(PR added): #4219 |
Can I work on this |
Hey @namkyu1999 is this still open? |
Hey @namkyu1999 , I would like to work on this issue. Is this issue still up for grabs? |
sure, go ahead! |
/assign |
@namkyu1999, I am new to the litmus project, Could you please guide me on this issue? |
hey can you please assign me this issue? @S-ayanide @namkyu1999 |
In Litmus version 2, we already remove global variables. you can see here #3937
However, with the change of Litmus version to 3, we have a new global variable, which we need to change to a field in the struct because global variables make unit testing difficult.
Here's a global variable what we need to remove.
litmus/chaoscenter/graphql/server/pkg/database/mongodb/operations.go
Line 36 in 794676f
We need to find and change all the places where that global variable is used, like this
Here's an example of what we did first #4136
Anyone who finds good first issues or participates in hacktoberfest can take this issue.
The text was updated successfully, but these errors were encountered: