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

Fix protocol tests #1835

Merged
merged 11 commits into from
Nov 27, 2019
Merged

Fix protocol tests #1835

merged 11 commits into from
Nov 27, 2019

Conversation

jfoutts-celo
Copy link
Contributor

@jfoutts-celo jfoutts-celo commented Nov 22, 2019

Description

Accidentally committed it.only() is causing the protocol tests to consist of only:
4570fde#diff-ea8b99cb616e766d769dc8b98bda7decR362

Tested

packages/protocol yarn test succeeds with 1065 passing test instead of 1.

Other changes

Passing async functions to describe() is a bug: mochajs/mocha#2975

The only occurrences of async describe() arguments in celo-monorepo were in the protocol tests, and they were all innocuous due to never await-ing.

@codecov
Copy link

codecov bot commented Nov 25, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@ab316cb). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##             master   #1835   +/-   ##
========================================
  Coverage          ?   74.2%           
========================================
  Files             ?     278           
  Lines             ?    7673           
  Branches          ?     961           
========================================
  Hits              ?    5694           
  Misses            ?    1862           
  Partials          ?     117
Flag Coverage Δ
#mobile 74.2% <ø> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ab316cb...2b81894. Read the comment docs.

@@ -901,23 +900,6 @@ contract('Election', (accounts: string[]) => {
})
})

describe('when different random values are provided', () => {
Copy link
Contributor

@asaj asaj Nov 26, 2019

Choose a reason for hiding this comment

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

Now that we're not using this, can we remove all references to random in this file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Even registry.setAddressFor(CeloContractName.Random, random.address) ? I'll look into in separate PR.

@asaj asaj removed their assignment Nov 26, 2019
@jfoutts-celo jfoutts-celo merged commit d945690 into master Nov 27, 2019
aaronmgdr added a commit that referenced this pull request Nov 27, 2019
…into aaronmgdr/build4

* 'aaronmgdr/build4' of github.com:celo-org/celo-monorepo:
  Dedicated signing of attestation messages (#1913)
  Allow BLS info to be passed to validator:register without 0x prefix (#1919)
  Use cert manager instead of lego for k8s SSL certificates (#1924)
  Fix protocol tests (#1835)
  Fix bug in LockedGold.relock wrapper (#1915)
  Add account:show command (#1916)
  Add warning about misusing pumba (#1857)
  Baklava docs improvements (#1854)
  Negate reversed conditional in faucet command (#1863)
aaronmgdr added a commit that referenced this pull request Nov 27, 2019
* master: (97 commits)
  Fix celotool expected cluster check (#1932)
  Build Page for Baklava Launch Part 1  (#1866)
  cli: Fix for #1875 (#1920)
  cli: Fixes for #1880 and #1874 (#1918)
  Minor edits to full-node and other docs (#1917)
  Check that we have provisioned phone numbers (#1927)
  Sort invite contact list (#1936)
  Generate the pop for the attestation service with geth (#1931)
  Have validators use ephemeral node keys by default (#1922)
  Enhanced Validator Setup Docs (#1926)
  Indicate account registration (#1928)
  Bugfix: actually whitelist oracle account (#1865)
  Display current account locked gold requirement in lockedgold:show (#1923)
  Dedicated signing of attestation messages (#1913)
  Allow BLS info to be passed to validator:register without 0x prefix (#1919)
  Use cert manager instead of lego for k8s SSL certificates (#1924)
  Fix protocol tests (#1835)
  Fix bug in LockedGold.relock wrapper (#1915)
  Add account:show command (#1916)
  Add warning about misusing pumba (#1857)
  ...

# Conflicts:
#	packages/web/pages/_app.tsx
#	yarn.lock
@jfoutts-celo jfoutts-celo deleted the jfoutts/protocol-tests-fix branch January 9, 2020 16:43
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.

None yet

3 participants