Commit 2b82b44a authored by Ralph Pichler's avatar Ralph Pichler Committed by GitHub

fix TestSocValidator (#475)

parent 637b67a8
......@@ -54,7 +54,7 @@ func TestSocValidator(t *testing.T) {
// check invalid address
sch.Data()[0] = 0x00
wrongAddressBytes := sch.Address().Bytes()
wrongAddressBytes[0] ^= wrongAddressBytes[0]
wrongAddressBytes[0] = 255 - wrongAddressBytes[0]
wrongAddress := swarm.NewAddress(wrongAddressBytes)
sch = swarm.NewChunk(wrongAddress, sch.Data())
if v.Validate(sch) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment