Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

test: remove wait time to reduce indetermination #922

Merged
merged 1 commit into from
Aug 25, 2020

Conversation

lance6716
Copy link
Collaborator

What problem does this PR solve?

part of #773

What is changed and how it works?

remove wait time to reduce indetermination

Check List

Tests

  • Integration test

Code changes

Side effects

Related changes

  • Need to cherry-pick to the release branch

@lance6716 lance6716 added priority/unimportant Really minor change, requires approval from secondary reviewers status/PTAL This PR is ready for review. Add this label back after committing new changes type/bug-fix Bug fix labels Aug 24, 2020
startTime := t.Add(5 * time.Second)
endTime := startTime.Add(20 * time.Second)
now := time.Now()
if now.Before(endTime) && now.After(startTime) {
Copy link
Member

Choose a reason for hiding this comment

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

we only fail in some times previously or only restart once is enough, @GMHDBJD this new implement can achieve your purpose?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Enough

Copy link
Collaborator

@GMHDBJD GMHDBJD left a comment

Choose a reason for hiding this comment

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

LGTM

@lance6716 lance6716 changed the base branch from master to fixTest August 24, 2020 11:10
@GMHDBJD GMHDBJD added status/LGT1 One reviewer already commented LGTM and removed status/PTAL This PR is ready for review. Add this label back after committing new changes labels Aug 24, 2020
Copy link
Member

@csuzhangxc csuzhangxc left a comment

Choose a reason for hiding this comment

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

LGTM

@csuzhangxc csuzhangxc added status/LGT2 Two reviewers already commented LGTM, ready for merge and removed status/LGT1 One reviewer already commented LGTM labels Aug 24, 2020
@lance6716
Copy link
Collaborator Author

/run-all-tests

3 similar comments
@lance6716
Copy link
Collaborator Author

/run-all-tests

@GMHDBJD
Copy link
Collaborator

GMHDBJD commented Aug 25, 2020

/run-all-tests

@GMHDBJD
Copy link
Collaborator

GMHDBJD commented Aug 25, 2020

/run-all-tests

@GMHDBJD GMHDBJD merged commit 319731c into pingcap:fixTest Aug 25, 2020
@lance6716 lance6716 deleted the fix-CI branch April 19, 2021 05:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority/unimportant Really minor change, requires approval from secondary reviewers status/LGT2 Two reviewers already commented LGTM, ready for merge type/bug-fix Bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants