improving string formatting

This commit is contained in:
Gabriel mermelstein 2025-02-03 15:16:12 +02:00
parent d64817b87f
commit 760c13da9e
No known key found for this signature in database
GPG Key ID: 82B8134785FEAE0D

View File

@ -962,7 +962,7 @@ func TestParallelPings(t *testing.T) {
return nil
}
return errors.New(fmt.Sprintf("dialerNode should have 3 peers but it has %d", dialerPeerCount))
return fmt.Errorf("dialerNode should have 3 peers but it has %d", dialerPeerCount)
}, options)
require.NoError(t, err)