-
Notifications
You must be signed in to change notification settings - Fork 376
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
Add unit test for egress group store #4151
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4151 +/- ##
==========================================
+ Coverage 65.08% 66.19% +1.10%
==========================================
Files 303 304 +1
Lines 46561 46625 +64
==========================================
+ Hits 30304 30862 +558
+ Misses 13903 13366 -537
- Partials 2354 2397 +43
|
w, err := store.Watch(context.Background(), "", labels.Everything(), tc.fieldSelector) | ||
if err != nil { | ||
t.Fatalf("Failed to watch object: %v", err) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should stop the watcher after the test finishes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated. BTW. Does it need to change this test function in this PR? same structure as TestWatchNetworkPolicyEvent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think yes
Signed-off-by: Wenqi Qiu <wenqiq@vmware.com>
Signed-off-by: Wenqi Qiu <wenqiq@vmware.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/skip-all |
Signed-off-by: Wenqi Qiu <wenqiq@vmware.com>
Add unit test for egress group store
For #4142
Signed-off-by: Wenqi Qiu wenqiq@vmware.com