Skip to content

change unit test framework to https://github.com/stretchr/testify #803

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

Merged
merged 12 commits into from
Jun 30, 2023

Conversation

lance6716
Copy link
Collaborator

No description provided.

@lance6716 lance6716 changed the title change unit test framework to https://github.com/stretchr/testify [WIP]change unit test framework to https://github.com/stretchr/testify Jun 22, 2023
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
@lance6716 lance6716 changed the title [WIP]change unit test framework to https://github.com/stretchr/testify change unit test framework to https://github.com/stretchr/testify Jun 23, 2023
Signed-off-by: lance6716 <[email protected]>
@lance6716
Copy link
Collaborator Author

Maybe the failed test is because in old test framework all Suite are run sequentially, but in testify they are run concurrently. And we have a RESET MASTER in (*testSyncerSuite).TestMysqlBinlogCodec()

I'll think how to bypass it. Do you have some advice? @atercattus

Signed-off-by: lance6716 <[email protected]>
@lance6716
Copy link
Collaborator Author

Maybe the failed test is because in old test framework all Suite are run sequentially, but in testify they are run concurrently. And we have a RESET MASTER in (*testSyncerSuite).TestMysqlBinlogCodec()

I'll think how to bypass it. Do you have some advice? @atercattus

Seems it's fixed https://github.com/go-mysql-org/go-mysql/actions/runs/5368879516
image

ptal @atercattus

@lance6716
Copy link
Collaborator Author

The PR is very big and hard to review, and now the tests can stably pass. I'll merge it.

@lance6716 lance6716 merged commit f14527e into go-mysql-org:master Jun 30, 2023
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.

1 participant