aboutsummaryrefslogtreecommitdiffstats
path: root/node/config_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'node/config_test.go')
-rw-r--r--node/config_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/config_test.go b/node/config_test.go
index b258d2a8b..d18732fdb 100644
--- a/node/config_test.go
+++ b/node/config_test.go
@@ -137,7 +137,7 @@ func TestNodeKeyPersistency(t *testing.T) {
if err != nil {
t.Fatalf("failed to read previously persisted node key: %v", err)
}
- if bytes.Compare(blob1, blob2) != 0 {
+ if !bytes.Equal(blob1, blob2) {
t.Fatalf("persisted node key mismatch: have %x, want %x", blob2, blob1)
}