-
Notifications
You must be signed in to change notification settings - Fork 193
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 UT for route agent health checker #3152
Add UT for route agent health checker #3152
Conversation
🤖 Created branch: z_pr3152/aswinsuryan/route-agent-health-checker-ut |
3cef4f7
to
e118bf2
Compare
pkg/routeagent_driver/handlers/healthchecker/health_checker_suite_test.go
Outdated
Show resolved
Hide resolved
pkg/routeagent_driver/handlers/healthchecker/healthchecker_test.go
Outdated
Show resolved
Hide resolved
pkg/routeagent_driver/handlers/healthchecker/healthchecker_test.go
Outdated
Show resolved
Hide resolved
pkg/routeagent_driver/handlers/healthchecker/healthchecker_test.go
Outdated
Show resolved
Hide resolved
pkg/routeagent_driver/handlers/healthchecker/healthchecker_test.go
Outdated
Show resolved
Hide resolved
pkg/routeagent_driver/handlers/healthchecker/healthchecker_test.go
Outdated
Show resolved
Hide resolved
pkg/routeagent_driver/handlers/healthchecker/healthchecker_test.go
Outdated
Show resolved
Hide resolved
I think we should structure the test specs as follows:
|
ef8bf81
to
6964392
Compare
Thanks for the suggestion . I updated the structure . |
1088968
to
72edf1a
Compare
pkg/routeagent_driver/handlers/healthchecker/healthchecker_test.go
Outdated
Show resolved
Hide resolved
pkg/routeagent_driver/handlers/healthchecker/healthchecker_test.go
Outdated
Show resolved
Hide resolved
pkg/routeagent_driver/handlers/healthchecker/healthchecker_test.go
Outdated
Show resolved
Hide resolved
pkg/routeagent_driver/handlers/healthchecker/healthchecker_test.go
Outdated
Show resolved
Hide resolved
pkg/routeagent_driver/handlers/healthchecker/healthchecker_test.go
Outdated
Show resolved
Hide resolved
pkg/routeagent_driver/handlers/healthchecker/healthchecker_test.go
Outdated
Show resolved
Hide resolved
5bdc520
to
1f06c7b
Compare
@tpantelis there is a race condition being reported in the set state method, where do you think we need to fix it ? some of the test infra ? Or do you think it is the code itself? WARNING: DATA RACE |
I pushed 8a30449 to address it. |
I had additional minor adjustments that I just pushed in another commit rather then adding comments (thought it would be easier). |
Signed-off-by: Aswin Suryanarayanan <asuryana@redhat.com>
...to avoid a race condition if State is called before SetState. Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
- Refactor code to await the RouteAgent resource to funntions to avoid duplication - Add spec to test pinger connection error - Other minor changes Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
6198d81
to
3634dd9
Compare
🤖 Closed branches: [z_pr3152/aswinsuryan/route-agent-health-checker-ut] |
Add UT for route agent health checker