Skip to content

Commit

Permalink
Fix printing of calls
Browse files Browse the repository at this point in the history
  • Loading branch information
chriso committed Jun 5, 2024
1 parent 7776e19 commit 93c4dc7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions call.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,7 @@ func (c Call) Equal(other Call) bool {
otherInput, _ := other.Input()
return input != nil && otherInput != nil && proto.Equal(input, otherInput)
}

func (c Call) String() string {
return c.message.String()
}
4 changes: 2 additions & 2 deletions dispatchtest/assert.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func AssertCalls(t *testing.T, got, want []dispatch.Call) {
}
for i, call := range got {
if !call.Equal(want[i]) {
t.Errorf("unexpected call %d: got %#v, want %#v", i, call, want[i])
t.Errorf("unexpected call %d: got %v, want %v", i, call, want[i])
}
}
}
Expand All @@ -23,7 +23,7 @@ func AssertCall(t *testing.T, got, want dispatch.Call) {
t.Helper()

if !got.Equal(want) {
t.Errorf("unexpected call: got %#v, want %#v", got, want)
t.Errorf("unexpected call: got %v, want %v", got, want)
}
}

Expand Down

0 comments on commit 93c4dc7

Please sign in to comment.