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

Go: test fixes + reporting #2867

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

Go: test fixes + reporting #2867

wants to merge 2 commits into from

Conversation

Yury-Fridlyand
Copy link
Collaborator

  1. Minor fix in few tests
  2. Test report generation

Signed-off-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Yury-Fridlyand <[email protected]>
@Yury-Fridlyand Yury-Fridlyand added go golang wrapper CI/CD CI/CD related testing Everything about testing labels Dec 25, 2024
@Yury-Fridlyand Yury-Fridlyand requested a review from a team as a code owner December 25, 2024 01:34
for i, client := range clients {
suite.T().Run(fmt.Sprintf("Testing [%v]", i), func(t *testing.T) {
for _, client := range clients {
suite.T().Run(fmt.Sprintf("%T", client)[5:], func(t *testing.T) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is needed to log which client was used in a test

@@ -55,7 +55,7 @@ func (suite *GlideTestSuite) TestSetWithOptions_ReturnOldValue() {

func (suite *GlideTestSuite) TestSetWithOptions_OnlyIfExists_overwrite() {
suite.runWithDefaultClients(func(client api.BaseClient) {
key := "TestSetWithOptions_OnlyIfExists_overwrite"
key := uuid.New().String()
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

tests need unique keys, otherwise they fail if reran on existing server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/CD CI/CD related go golang wrapper testing Everything about testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant