mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 23:48:06 -05:00
Update to V4 🚀 (#12134)
* Update V3 from V4 * Fix build v3 -> v4 * Update ssz * Update beacon_chain.pb.go * Fix formatter import * Update update-mockgen.sh comment to v4 * Fix conflicts. Pass build and tests * Fix test
This commit is contained in:
@@ -6,8 +6,8 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
. "github.com/prysmaticlabs/prysm/v3/runtime/logging/logrus-prefixed-formatter"
|
||||
"github.com/prysmaticlabs/prysm/v3/testing/require"
|
||||
prefixed "github.com/prysmaticlabs/prysm/v4/runtime/logging/logrus-prefixed-formatter"
|
||||
"github.com/prysmaticlabs/prysm/v4/testing/require"
|
||||
|
||||
. "github.com/onsi/ginkgo"
|
||||
. "github.com/onsi/gomega"
|
||||
@@ -15,13 +15,13 @@ import (
|
||||
)
|
||||
|
||||
var _ = Describe("Formatter", func() {
|
||||
var formatter *TextFormatter
|
||||
var formatter *prefixed.TextFormatter
|
||||
var log *logrus.Logger
|
||||
var output *LogOutput
|
||||
|
||||
BeforeEach(func() {
|
||||
output = new(LogOutput)
|
||||
formatter = new(TextFormatter)
|
||||
formatter = new(prefixed.TextFormatter)
|
||||
log = logrus.New()
|
||||
log.Out = output
|
||||
log.Formatter = formatter
|
||||
@@ -57,7 +57,7 @@ var _ = Describe("Formatter", func() {
|
||||
})
|
||||
|
||||
func TestFormatter_SuppressErrorStackTraces(t *testing.T) {
|
||||
formatter := new(TextFormatter)
|
||||
formatter := new(prefixed.TextFormatter)
|
||||
formatter.ForceFormatting = true
|
||||
log := logrus.New()
|
||||
log.Formatter = formatter
|
||||
@@ -73,7 +73,7 @@ func TestFormatter_SuppressErrorStackTraces(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestFormatter_EscapesControlCharacters(t *testing.T) {
|
||||
formatter := new(TextFormatter)
|
||||
formatter := new(prefixed.TextFormatter)
|
||||
formatter.ForceFormatting = true
|
||||
log := logrus.New()
|
||||
log.Formatter = formatter
|
||||
|
||||
Reference in New Issue
Block a user