mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-04 08:44:28 +00:00
sharding: \notarys\notaries
Former-commit-id: 7eb970515405983d0d0d8f805fdff5c5a3317f93 [formerly 664a9e0acbccebda143006e8063389884efae880] Former-commit-id: 61c048015002bf92da708f80365dfc38d11671ef
This commit is contained in:
parent
2732187e64
commit
f308706680
@ -104,13 +104,13 @@ func TestJoinNotaryPool(t *testing.T) {
|
|||||||
backend, smc := setup()
|
backend, smc := setup()
|
||||||
client := &mockClient{smc, t}
|
client := &mockClient{smc, t}
|
||||||
|
|
||||||
// There should be no notarys initially
|
// There should be no notary initially
|
||||||
numNotaries, err := smc.NumNotaries(&bind.CallOpts{})
|
numNotaries, err := smc.NumNotaries(&bind.CallOpts{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
if big.NewInt(0).Cmp(numNotaries) != 0 {
|
if big.NewInt(0).Cmp(numNotaries) != 0 {
|
||||||
t.Fatalf("Unexpected number of notarys. Got %d, wanted 0.", numNotaries)
|
t.Fatalf("Unexpected number of notaries. Got %d, wanted 0.", numNotaries)
|
||||||
}
|
}
|
||||||
|
|
||||||
err = joinNotaryPool(client)
|
err = joinNotaryPool(client)
|
||||||
@ -125,6 +125,6 @@ func TestJoinNotaryPool(t *testing.T) {
|
|||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
if big.NewInt(1).Cmp(numNotaries) != 0 {
|
if big.NewInt(1).Cmp(numNotaries) != 0 {
|
||||||
t.Fatalf("Unexpected number of notarys. Got %d, wanted 1.", numNotaries)
|
t.Fatalf("Unexpected number of notaries. Got %d, wanted 1.", numNotaries)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user