swarm/network: output substr of hive output

This commit is contained in:
Anton Evangelatov 2018-01-08 13:23:58 +01:00 committed by lash
parent fe51ebd31b
commit d50fb250f0

View file

@ -406,6 +406,7 @@ func TestKademliaHiveString(t *testing.T) {
}
expH += "========================================================================="
if expH[100:] != h[100:] {
t.Fatalf("incorrect hive output. expected %v, got %v", expH, h)
t.Errorf("incorrect hive output. full - expected %v, got %v", expH, h)
t.Fatalf("incorrect hive output. substr - expected %v, got %v", expH[100:], h[100:])
}
}