@@ -248,7 +248,7 @@ func TestClientNtNAcceptV11(t *testing.T) {
248
248
249
249
func TestClientNtCRefuseVersionMismatch (t * testing.T ) {
250
250
defer goleak .VerifyNone (t )
251
- expectedErr := fmt . Sprintf ( "%s : version mismatch", handshake . ProtocolName )
251
+ expectedErr := handshake . ProtocolName + " : version mismatch"
252
252
mockConn := ouroboros_mock .NewConnection (
253
253
ouroboros_mock .ProtocolRoleClient ,
254
254
[]ouroboros_mock.ConversationEntry {
@@ -282,7 +282,7 @@ func TestClientNtCRefuseVersionMismatch(t *testing.T) {
282
282
283
283
func TestClientNtCRefuseDecodeError (t * testing.T ) {
284
284
defer goleak .VerifyNone (t )
285
- expectedErr := fmt . Sprintf ( "%s : decode error: foo", handshake . ProtocolName )
285
+ expectedErr := handshake . ProtocolName + " : decode error: foo"
286
286
mockConn := ouroboros_mock .NewConnection (
287
287
ouroboros_mock .ProtocolRoleClient ,
288
288
[]ouroboros_mock.ConversationEntry {
@@ -317,7 +317,7 @@ func TestClientNtCRefuseDecodeError(t *testing.T) {
317
317
318
318
func TestClientNtCRefuseRefused (t * testing.T ) {
319
319
defer goleak .VerifyNone (t )
320
- expectedErr := fmt . Sprintf ( "%s : refused: foo", handshake . ProtocolName )
320
+ expectedErr := handshake . ProtocolName + " : refused: foo"
321
321
mockConn := ouroboros_mock .NewConnection (
322
322
ouroboros_mock .ProtocolRoleClient ,
323
323
[]ouroboros_mock.ConversationEntry {
0 commit comments