Skip to content

Commit aafb604

Browse files
3scalationdolmen
andcommitted
mock: improve formatting of error message
Co-authored-by: Olivier Mengué <[email protected]>
1 parent 7218e03 commit aafb604

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mock/mock.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ func (m *Mock) AssertNumberOfCalls(t TestingT, methodName string, expectedCalls
671671
actualCalls++
672672
}
673673
}
674-
return assert.Equal(t, expectedCalls, actualCalls, fmt.Sprintf("Expected number of calls (%d) of method (%s) does not match the actual number of calls (%d).", expectedCalls, methodName, actualCalls))
674+
return assert.Equal(t, expectedCalls, actualCalls, fmt.Sprintf("Expected number of calls (%d) of method %s does not match the actual number of calls (%d).", expectedCalls, methodName, actualCalls))
675675
}
676676

677677
// AssertCalled asserts that the method was called.

0 commit comments

Comments
 (0)