Say mustPanic wants internalError's phrase
This commit is contained in:
+2
-2
@@ -213,8 +213,8 @@ func TestArgGuardsPanic(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// mustPanic fails unless call panics, which is what separates a reported
|
// mustPanic fails unless call panics with internalError's phrase, which is what
|
||||||
// invariant break from a silently wrong value.
|
// separates a reported invariant break from a silently wrong value.
|
||||||
func mustPanic(t *testing.T, name string, call func()) {
|
func mustPanic(t *testing.T, name string, call func()) {
|
||||||
t.Helper()
|
t.Helper()
|
||||||
defer func() {
|
defer func() {
|
||||||
|
|||||||
Reference in New Issue
Block a user