Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

test/*: de-duplicate value timeout and retryInterval #1049

Merged
merged 1 commit into from
Oct 8, 2020

Conversation

knrt10
Copy link
Member

@knrt10 knrt10 commented Oct 7, 2020

timeout and retryInterval were the same for most of the components and was
duplicated.

closes: #502
Signed-off-by: knrt10 kautilya@kinvolk.io

@knrt10 knrt10 force-pushed the knrt10/de-duplicate-timeout-retry-tests branch from eff647f to 584e827 Compare October 7, 2020 07:36
Copy link
Member

@invidian invidian left a comment

Choose a reason for hiding this comment

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

Hm, it seems there is more occurrences, even with 5sec/5min values.

I also think 9 minute tests could also get a const, like TimeoutSlow or something.

@knrt10
Copy link
Member Author

knrt10 commented Oct 7, 2020

There are 2 different values for timeout, 1 is 7min and other is 9 min. What should be the naming convention?

TimeoutSlow and TimeoutSlower?

@invidian
Copy link
Member

invidian commented Oct 7, 2020

There are 2 different values for timeout, 1 is 7min and other is 9 min. What should be the naming convention?

7 minutes can either be left as-is (as there is no duplication) or just increased to 9 minutes.

@knrt10 knrt10 force-pushed the knrt10/de-duplicate-timeout-retry-tests branch from 584e827 to 85fd4b8 Compare October 7, 2020 08:08
@knrt10 knrt10 changed the title test/components/*: de-duplicate values test/*: de-duplicate values Oct 7, 2020
@knrt10 knrt10 changed the title test/*: de-duplicate values test/*: de-duplicate value timeout and retryInterval Oct 7, 2020
@knrt10 knrt10 force-pushed the knrt10/de-duplicate-timeout-retry-tests branch 2 times, most recently from 453f775 to 625abe5 Compare October 7, 2020 08:12
@knrt10 knrt10 requested a review from invidian October 7, 2020 08:12
Copy link
Member

@invidian invidian left a comment

Choose a reason for hiding this comment

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

Nice work @knrt10

test/calico/metadata_access_test.go Outdated Show resolved Hide resolved
test/components/cert-manager/cert-manager_test.go Outdated Show resolved Hide resolved
test/components/util/util.go Outdated Show resolved Hide resolved
@knrt10 knrt10 force-pushed the knrt10/de-duplicate-timeout-retry-tests branch from 625abe5 to c6434ff Compare October 7, 2020 08:50
@knrt10 knrt10 requested a review from invidian October 7, 2020 08:51
Copy link
Member

@invidian invidian 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

@invidian invidian left a comment

Choose a reason for hiding this comment

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

Rebase needed.

timeout and retryInterval were same for most of the components and was
duplicated.

closes: #502
Signed-off-by: knrt10 <kautilya@kinvolk.io>
@knrt10 knrt10 force-pushed the knrt10/de-duplicate-timeout-retry-tests branch from c6434ff to d39fc22 Compare October 8, 2020 10:31
@knrt10 knrt10 requested a review from invidian October 8, 2020 10:32
Copy link
Member

@surajssd surajssd left a comment

Choose a reason for hiding this comment

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

LGTM

@knrt10 knrt10 merged commit 6b0adb2 into master Oct 8, 2020
@knrt10 knrt10 deleted the knrt10/de-duplicate-timeout-retry-tests branch October 8, 2020 11:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

De-duplicate timeout and retry intervals in test/components/*
3 participants