Skip to content

chore: remove global variable for better unit testing #4217

@namkyu1999

Description

@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.

Operator MongoOperator = &MongoOperations{}

We need to find and change all the places where that global variable is used, like this
Screenshot 2023-10-05 at 11 37 03 AM

Here's an example of what we did first #4136

Anyone who finds good first issues or participates in hacktoberfest can take this issue.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions