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

Tests: pkg dynamiccontroller: increases test coverage #414

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

DhairyaMajmudar
Copy link
Contributor

@DhairyaMajmudar DhairyaMajmudar commented Mar 18, 2025

Description

  1. Increases tests coverage from 62.5% to 76.7% for pkg/dynamiccontroller/dynamiccontroller_test.go file
  2. Replaced deprecated go io/ioutil package to io

ScreenShots

Before After
Screenshot from 2025-03-18 13-54-15 Screenshot from 2025-03-18 14-48-32

cc: @a-hilaly

Copy link
Member

@a-hilaly a-hilaly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @DhairyaMajmudar ! left a few comments inline

expected: true,
},
{
name: "one unsynced informer",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we have some test cases for one synced informer, many synced informers and many sync informers and many unsynced informers ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@a-hilaly I've added the suggested changes and also simplified them a bit but the tests cases for one synced informer and many synced informers are failing.

It seems to be like some bug with actual function, can you pls. confirm once.

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