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

Refactor/splitting testnet #225

Merged
merged 20 commits into from Aug 20, 2019

Moving tests that aren't deterministic now.

  • Loading branch information
Freydal committed Aug 20, 2019
commit 0726ffba181f8a74d7851d90a729a660293496b5
@@ -7,12 +7,6 @@ describe("EventEmitter", () => {
});

describe("getAddress", () => {
it("should return the configured address.", async () => {
await new EventEmitter({ web3Wrapper })
.getAddress()
.should.eventually.eq(DeployedAddresses["6174"].EventEmitter.contractAddress);
});

it("throw when using an unknown network", async () => {
await new EventEmitter({ web3Wrapper: nullWeb3Wrapper })
.getAddress()
@@ -2,43 +2,6 @@ const DeployedAddresses = require("@kosu/system-contracts").DeployedAddresses[61
const decodeKosuEvents = require("@kosu/system-contracts").decodeKosuEvents;

describe("ValidatorRegistry", () => {
it("should be configured properly", async () => {
await kosu.validatorRegistry.kosuToken().should.eventually.eq(DeployedAddresses.KosuToken.contractAddress);
await kosu.validatorRegistry.voting().should.eventually.eq(DeployedAddresses.Voting.contractAddress);
await kosu.validatorRegistry
.applicationPeriod()
.then(x => x.toNumber())
.should.eventually.eq(10);
await kosu.validatorRegistry
.commitPeriod()
.then(x => x.toNumber())
.should.eventually.eq(10);
await kosu.validatorRegistry
.challengePeriod()
.then(x => x.toNumber())
.should.eventually.eq(20);
await kosu.validatorRegistry
.exitPeriod()
.then(x => x.toNumber())
.should.eventually.eq(5);
await kosu.validatorRegistry
.rewardPeriod()
.then(x => x.toNumber())
.should.eventually.eq(5);
await kosu.validatorRegistry
.stakeholderCut()
.then(x => x.toNumber())
.should.eventually.eq(30);
await kosu.validatorRegistry
.maxRewardRate()
.then(x => x.toString())
.should.eventually.eq(TestValues.oneEther.div(10).toString());
await kosu.validatorRegistry
.minimumBalance()
.then(x => x.toString())
.should.eventually.eq(TestValues.fiveHundredEther.toString());
});

it("should allow validator interactions", async () => {
const pubKey = "0x010203";

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.