Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions common/log/v3/log_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -581,17 +581,18 @@ func TestCallerStackHandler(t *testing.T) {
t.Fatalf("Wrong context value type, got %T expected string", r.Ctx[1])
}

exp := "["
var exp strings.Builder
exp.WriteString("[")
for i, line := range lines {
if i > 0 {
exp += " "
exp.WriteString(" ")
}
exp += fmt.Sprint(file, ":", line)
exp.WriteString(fmt.Sprint(file, ":", line))
}
exp += "]"
exp.WriteString("]")

if s != exp {
t.Fatalf("Wrong context value, got %s expected string matching %s", s, exp)
if s != exp.String() {
t.Fatalf("Wrong context value, got %s expected string matching %s", s, exp.String())
}
}

Expand Down
2 changes: 1 addition & 1 deletion execution/protocol/rules/aura/aura.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func (e *EpochManager) zoomToAfter(chain rules.ChainHeaderReader, er *NonTransac
e.finalityChecker = NewRollingFinality(epochSet)
if proof.SignalNumber >= DEBUG_LOG_FROM {
fmt.Printf("new rolling finality: %d\n", proof.SignalNumber)
for i := 0; i < len(epochSet); i++ {
for i := range epochSet {
fmt.Printf("\t%x\n", epochSet[i])
}
}
Expand Down
4 changes: 1 addition & 3 deletions node/app/event/eventbus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,7 @@ func TestSubcribeOnceAsync(t *testing.T) {
t.Fail()
}

var cb func(a int, out *[]int)

if bus.HasCallback(reflect.TypeOf(cb)) {
if bus.HasCallback(reflect.TypeFor[func(a int, out *[]int)]()) {
t.Fail()
}
}
Expand Down
Loading