bsr(chunk decode): fix intermittent error message inconsistency

This commit is contained in:
irenarindos authored and Timothy Messier committed 2023-05-31 12:18:20 +00:00
1 parent 5d0a9b706e
commit 4e5401da7d
1 file changed
+2 -2
+2 -2
View File
@@ -729,14 +729,14 @@ func TestDecodeChunkErrors(t *testing.T) {
Type: ssh.BreakReqChunkType,
},
[]byte("foo"),
errors.New("ssh.DecodeChunk: proto: cannot parse invalid wire-format data"),
errors.New("cannot parse invalid wire-format data"),
},
}
for _, tc := range cases {
t.Run(tc.name, func(t *testing.T) {
_, err := ssh.DecodeChunk(ctx, tc.bc, tc.encoded)
require.EqualError(t, err, tc.want.Error())
require.ErrorContains(t, err, tc.want.Error())
})
}
}