mirror of
https://github.com/pion/stun.git
synced 2026-04-22 15:07:24 +08:00
Use constant format string
This commit is contained in:
+1
-1
@@ -93,7 +93,7 @@ func TestParseURL(t *testing.T) {
|
||||
case errors.As(err, &urlError):
|
||||
err = urlError.Err
|
||||
case errors.As(err, &addrError):
|
||||
err = fmt.Errorf(addrError.Err) //nolint:err113, govet
|
||||
err = fmt.Errorf("%s", addrError.Err) //nolint:err113
|
||||
}
|
||||
assert.EqualError(t, err, testCase.expectedErr.Error(), "testCase: %d %v", i, testCase)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user