Skip to content

Collator: add test for joinCollatorPool - #87

Merged
prestonvanloon merged 2 commits into
OffchainLabs:masterfrom
prestonvanloon:testing
Apr 3, 2018
Merged

Collator: add test for joinCollatorPool#87
prestonvanloon merged 2 commits into
OffchainLabs:masterfrom
prestonvanloon:testing

Conversation

@prestonvanloon

@prestonvanloon prestonvanloon commented Apr 3, 2018

Copy link
Copy Markdown
Member

Added test for the basic functionality of joinCollatorPool

Also renamed CreateTXOps to CreateTXOpts to match the TransactOpts type

@prestonvanloon prestonvanloon added this to the Ruby milestone Apr 3, 2018

@rauljordan rauljordan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All of this seems like basic renaming + some func abstraction. Looks good to me and tests pass on my computer.

}

func TestJoinCollatorPool(t *testing.T) {
backend, smc := setup()

@rauljordan rauljordan Apr 3, 2018

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

How extensible is this approach to future testing? Do we have to initialize it like the setup like this within each testing method?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah, I think so. I added a TODO to consider moving this setup to some common testing package since the proposer would likely want the same setup methods and mockClient.

@terencechain
terencechain self-requested a review April 3, 2018 03:04
@prestonvanloon

Copy link
Copy Markdown
Member Author

Why is Travis so flaky... hmmm. It passes on 1 of 3 so I'd consider that passing :)

@terencechain

terencechain commented Apr 3, 2018

Copy link
Copy Markdown
Collaborator

Looks good to me, we should refactor the test setup in another PR

@prestonvanloon
prestonvanloon merged commit 6f7b4ec into OffchainLabs:master Apr 3, 2018
@prestonvanloon
prestonvanloon deleted the testing branch April 3, 2018 23:41
prestonvanloon added a commit that referenced this pull request Jul 22, 2018
Collator: add test for joinCollatorPool
prestonvanloon added a commit that referenced this pull request Jul 22, 2018
Collator: add test for joinCollatorPool
Former-commit-id: abc8304
prestonvanloon added a commit that referenced this pull request Jul 22, 2018
Collator: add test for joinCollatorPool
Former-commit-id: a940a35422146888ecef0bc28be9dc03e71c806c [formerly abc8304]
Former-commit-id: 1e94cff
Redidacove pushed a commit to Redidacove/prysm that referenced this pull request Aug 13, 2024
* updated my development updates for week 1 and week 0

* alphabetical order, table fix

---------

Co-authored-by: Mário Havel <61149543+taxmeifyoucan@users.noreply.github.com>
Copilot AI mentioned this pull request Jul 21, 2026
4 tasks
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