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

chore: fix flaky test TestGetAccessJwt #8818

Merged
merged 1 commit into from
May 6, 2023
Merged

chore: fix flaky test TestGetAccessJwt #8818

merged 1 commit into from
May 6, 2023

Conversation

mangalaman93
Copy link
Contributor

No description provided.

@dgraph-bot dgraph-bot added area/testing Testing related issues go Pull requests that update Go code labels May 6, 2023
@@ -100,8 +99,10 @@ func TestGetAccessJwt(t *testing.T) {
{3456789012, "user3", []string{"702", "703"}},
}

worker.Config.AccessJwtTtl = 20 * time.Second
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you think its a good idea to override it here instead of in config?

Copy link
Contributor Author

@mangalaman93 mangalaman93 May 6, 2023

Choose a reason for hiding this comment

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

This is a unit test. There is no config. This test does not talk to alpha or zero.

@mangalaman93 mangalaman93 merged commit 6cd2dfc into main May 6, 2023
10 checks passed
@mangalaman93 mangalaman93 deleted the aman/flaky branch May 6, 2023 22:55
jbhamra1 pushed a commit that referenced this pull request May 9, 2023
This test does not talk to Alpha and requires setting up
the TTL to 20 second.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/testing Testing related issues go Pull requests that update Go code
Development

Successfully merging this pull request may close these issues.

None yet

4 participants