mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +00:00
Merge pull request #436 from gzliudan/fix-RIN-07
fix test error in file core/vm/privacy/ringct_test.go
This commit is contained in:
commit
72d4548272
1 changed files with 3 additions and 7 deletions
|
|
@ -116,7 +116,7 @@ func TestVerify1(t *testing.T) {
|
||||||
assert.True(t, Verify(deserializedSig, false), "Verify should return true")
|
assert.True(t, Verify(deserializedSig, false), "Verify should return true")
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestVerify2(t *testing.T) {
|
func TestDeserialize2(t *testing.T) {
|
||||||
numRing := 5
|
numRing := 5
|
||||||
ringSize := 10
|
ringSize := 10
|
||||||
s := 7
|
s := 7
|
||||||
|
|
@ -139,12 +139,8 @@ func TestVerify2(t *testing.T) {
|
||||||
t.Error("fail to serialize input ring signature")
|
t.Error("fail to serialize input ring signature")
|
||||||
}
|
}
|
||||||
|
|
||||||
deserializedSig, err := Deserialize(sig)
|
_, err = Deserialize(sig)
|
||||||
if err != nil {
|
assert.EqualError(t, err, "failed to deserialize, invalid ring signature")
|
||||||
t.Error("fail to deserialize ring signature")
|
|
||||||
}
|
|
||||||
|
|
||||||
assert.False(t, Verify(deserializedSig, false), "TestNilPointerDereferencePanic should return false")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestPadTo32Bytes(t *testing.T) {
|
func TestPadTo32Bytes(t *testing.T) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue