From 0b41ecc04f80aa00c4d6f3e717d603ed1fa8438a Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Wed, 10 May 2023 13:15:31 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Jorropo --- ipns/validate_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ipns/validate_test.go b/ipns/validate_test.go index 48fa0ec78..b4c06883d 100644 --- a/ipns/validate_test.go +++ b/ipns/validate_test.go @@ -420,28 +420,28 @@ func TestValidateWithPeerID(t *testing.T) { rnd := rand.New(rand.NewSource(42)) sk, pk, err := crypto.GenerateEd25519Key(rnd) - assert.Nil(t, err) + assert.NoError(t, err) pid, err := peer.IDFromPublicKey(pk) - assert.Nil(t, err) + assert.NoError(t, err) entry, err := Create(sk, path, 1, eol, 0) - assert.Nil(t, err) + assert.NoError(t, err) t.Run("valid peer ID", func(t *testing.T) { t.Parallel() err = ValidateWithPeerID(pid, entry) - assert.Nil(t, err) + assert.NoError(t, err) }) t.Run("invalid peer ID", func(t *testing.T) { t.Parallel() _, pk2, err := crypto.GenerateEd25519Key(rnd) - assert.Nil(t, err) + assert.NoError(t, err) pid2, err := peer.IDFromPublicKey(pk2) - assert.Nil(t, err) + assert.NoError(t, err) err = ValidateWithPeerID(pid2, entry) assert.NotNil(t, err)