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

Double Deal Flow #1481

Merged
merged 3 commits into from
Apr 23, 2020
Merged

Double Deal Flow #1481

merged 3 commits into from
Apr 23, 2020

Conversation

jsign
Copy link
Contributor

@jsign jsign commented Mar 31, 2020

This PR has a new test for checking the issue #1455.

Test shouldn't pass since this PR adds the test to expose failing.
The last rebase include the fix, tests should pass.

Comment on lines 453 to 454
t.Run("TestDealFlow", func(t *testing.T) { test.TestDealFlow(t, mockSbBuilder, 10*time.Millisecond) })
t.Run("TestDoubleDealFlow", func(t *testing.T) { test.TestDoubleDealFlow(t, mockSbBuilder, 10*time.Millisecond) })
Copy link
Contributor Author

Choose a reason for hiding this comment

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

  • TestDealFlow pass correctly since is the original test
  • TestDoubleDealFlow doesn't pass.


r := bytes.NewReader(data)
fcid, err := client.ClientImportLocal(ctx, r)
makeDeal(t, ctx, 6, client, miner)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

So most of the deal making is now on an extracted makeDeal.
This makes TestDealFlow only calling this once, and TestDoubleDealFlow calling it twice... to be sure both are doing the exact same thing (with just randomness changing for the second deal).

@arajasek
Copy link
Contributor

The issue has been fixed in specs-actors, this test will pass when Lotus next updates specs-actors.

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
@jsign
Copy link
Contributor Author

jsign commented Apr 21, 2020

Rebased now that last commit has spec-actor fix.
Looks green on tests!

@arajasek arajasek self-requested a review April 21, 2020 23:03
Copy link
Contributor

@arajasek arajasek left a comment

Choose a reason for hiding this comment

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

Thanks for the test! :)

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.

2 participants