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

refine defer deleting pvc codes #190

Merged
merged 10 commits into from
Nov 24, 2018
Merged

Conversation

weekface
Copy link
Contributor

  • refine defer deleting pvc codes, remove wait.Poll
  • add more unit tests, scaler.go coverage from 82.8% to 95.2%

@tennix @xiaojingchen PTAL

err := gs.deleteAllDeferDeletingPVC(tc, setName, test.memberType, test.from, test.to)
test.expectFn(g, err)
}
tests := []testcase{
Copy link
Contributor

Choose a reason for hiding this comment

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

these cases lack of normal case.

@weekface
Copy link
Contributor Author

/run-e2e-tests

@weekface
Copy link
Contributor Author

/run-e2e-tests

@tennix
Copy link
Member

tennix commented Nov 23, 2018

deleteAllDeferDeletingPVC can't distinguish the different continue cases. I think we should add a helper return value for unit testing.

Copy link
Contributor

@xiaojingchen xiaojingchen left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@tennix tennix left a comment

Choose a reason for hiding this comment

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

LGTM

@tennix
Copy link
Member

tennix commented Nov 23, 2018

/run-e2e-tests

@tennix tennix merged commit e5c3cdd into pingcap:master Nov 24, 2018
queenliuxx pushed a commit to queenliuxx/tidb-operator that referenced this pull request Dec 19, 2018
@weekface weekface deleted the pvc-defer-deleting branch June 21, 2019 08:44
fgksgf pushed a commit to fgksgf/tidb-operator that referenced this pull request Dec 23, 2024
Signed-off-by: liubo02 <liubo02@pingcap.com>
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.

3 participants