@@ -248,7 +248,7 @@ func TestClientNtNAcceptV11(t *testing.T) {
248248
249249func TestClientNtCRefuseVersionMismatch (t * testing.T ) {
250250 defer goleak .VerifyNone (t )
251- expectedErr := fmt . Sprintf ( "%s : version mismatch", handshake . ProtocolName )
251+ expectedErr := handshake . ProtocolName + " : version mismatch"
252252 mockConn := ouroboros_mock .NewConnection (
253253 ouroboros_mock .ProtocolRoleClient ,
254254 []ouroboros_mock.ConversationEntry {
@@ -282,7 +282,7 @@ func TestClientNtCRefuseVersionMismatch(t *testing.T) {
282282
283283func TestClientNtCRefuseDecodeError (t * testing.T ) {
284284 defer goleak .VerifyNone (t )
285- expectedErr := fmt . Sprintf ( "%s : decode error: foo", handshake . ProtocolName )
285+ expectedErr := handshake . ProtocolName + " : decode error: foo"
286286 mockConn := ouroboros_mock .NewConnection (
287287 ouroboros_mock .ProtocolRoleClient ,
288288 []ouroboros_mock.ConversationEntry {
@@ -317,7 +317,7 @@ func TestClientNtCRefuseDecodeError(t *testing.T) {
317317
318318func TestClientNtCRefuseRefused (t * testing.T ) {
319319 defer goleak .VerifyNone (t )
320- expectedErr := fmt . Sprintf ( "%s : refused: foo", handshake . ProtocolName )
320+ expectedErr := handshake . ProtocolName + " : refused: foo"
321321 mockConn := ouroboros_mock .NewConnection (
322322 ouroboros_mock .ProtocolRoleClient ,
323323 []ouroboros_mock.ConversationEntry {
0 commit comments