Skip to content

Conversation

@fabi200123
Copy link
Contributor

  • refactor integration tests to use testify/suite

@fabi200123 fabi200123 force-pushed the integration-tests branch 3 times, most recently from 445fd43 to ed988e9 Compare June 13, 2024 09:58
t.Log("Testing error on duplicate credentials name")
creds, err := suite.createDummyCredentials(dummyCredentialsName, defaultEndpointName)
suite.NoError(err)
defer suite.DeleteGithubCredential(int64(creds.ID))
Copy link
Member

Choose a reason for hiding this comment

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

The golang testing package has a Cleanup() function

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated all suite to use t.Cleanup instead of defer FunctionName

@fabi200123 fabi200123 force-pushed the integration-tests branch 2 times, most recently from 88f8f49 to 2bec645 Compare June 17, 2024 09:08
@gabriel-samfira gabriel-samfira merged commit a66cbcc into cloudbase:main Jun 17, 2024
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