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

Modified chain.leave() to handle concurrency #280

Merged
merged 4 commits into from
Feb 8, 2023

Conversation

Rohith-Raju
Copy link
Contributor

Signed-off-by: ROHITH RAJU [email protected]
Merge this to #254 to make environment thread-safe.

@coveralls
Copy link
Collaborator

coveralls commented Feb 6, 2023

Coverage Status

Coverage: 94.838% (-0.005%) from 94.842% when pulling 58f6486 on Rohith-Raju:Deadlock_resolver into f96cad9 on gavv:master.

@Rohith-Raju
Copy link
Contributor Author

Rohith-Raju commented Feb 6, 2023

@gavv could you take a look at this? I'll move towards adding test cases if It looks good.

we need a test for chain, which uses mock AssertionHandler and checks that fail does not report failure and instead leave reports it

@gavv
Copy link
Owner

gavv commented Feb 6, 2023

The patch looks good now, thanks!

We also need the test for chain discussed in previous PR.

@gavv
Copy link
Owner

gavv commented Feb 6, 2023

Oh, you already mentioned the test. Cool, thanks.

chain.go Outdated Show resolved Hide resolved
@gavv
Copy link
Owner

gavv commented Feb 6, 2023

#233

@gavv gavv added the work in progress Pull request is still in progress and changing label Feb 6, 2023
@gavv gavv changed the title Modified chain.leave() to handle concurrancy Modified chain.leave() to handle concurrency Feb 6, 2023
@Rohith-Raju Rohith-Raju requested a review from gavv February 7, 2023 05:30
@Rohith-Raju
Copy link
Contributor Author

@gavv the tests are a rough sketch.

@gavv
Copy link
Owner

gavv commented Feb 7, 2023

LGTM

@github-actions
Copy link

github-actions bot commented Feb 8, 2023

☔ The latest upstream change (presumably these) made this pull request unmergeable. Please resolve the merge conflicts.

@github-actions github-actions bot added the needs rebase Pull request has conflicts and should be rebased label Feb 8, 2023
@gavv gavv force-pushed the Deadlock_resolver branch from 7915828 to 58f6486 Compare February 8, 2023 13:01
@gavv gavv removed work in progress Pull request is still in progress and changing needs rebase Pull request has conflicts and should be rebased labels Feb 8, 2023
@gavv
Copy link
Owner

gavv commented Feb 8, 2023

Thanks.

I've rebased PR on fresh master and added a few cosmetic fixes:

  • comments
  • reordering of some fields / vars to follow the same order everywhere
  • refactoring of tests

@gavv gavv merged commit c421815 into gavv:master Feb 8, 2023
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.

3 participants