Skip to content

Commit 517d393

Browse files
committed
test: fix test for CommandChainingTransform
1 parent 8566441 commit 517d393

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Yubico.YubiKey/tests/unit/Yubico/YubiKey/Pipelines/CommandChainingTransformTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public void Invoke_CommandApduWithLargeDataBuffer_OrsHex10ToClaOnAllExceptLast()
153153

154154
_ = mockTransform
155155
.Setup(x => x.Invoke(It.IsAny<CommandApdu>(), It.IsAny<Type>(), It.IsAny<Type>()))
156-
.Returns(new ResponseApdu([], 0x90))
156+
.Returns(new ResponseApdu(new byte[] { 0x90, 0x00 }))
157157
.Callback<CommandApdu, Type, Type>((a, b, c) => observedCla.Add(a.Cla));
158158

159159
// Act
@@ -181,7 +181,7 @@ public void Invoke_CommandApduWithLargeDataBuffer_AllOtherApduPropertiesRemainUn
181181

182182
_ = mockTransform
183183
.Setup(x => x.Invoke(It.IsAny<CommandApdu>(), It.IsAny<Type>(), It.IsAny<Type>()))
184-
.Returns(new ResponseApdu([], 0x90))
184+
.Returns(new ResponseApdu(new byte[] { 0x90, 0x00 }))
185185
.Callback<CommandApdu, Type, Type>((a, b, c) => observedApdus.Add(a));
186186

187187
// Act
@@ -211,7 +211,7 @@ public void Invoke_CommandApduWithLargeDataBuffer_SplitsDataAcrossInvokeCalls()
211211

212212
_ = mockTransform
213213
.Setup(x => x.Invoke(It.IsAny<CommandApdu>(), It.IsAny<Type>(), It.IsAny<Type>()))
214-
.Returns(new ResponseApdu([], 0x90))
214+
.Returns(new ResponseApdu(new byte[] { 0x90, 0x00 }))
215215
.Callback<CommandApdu, Type, Type>((a, b, c) => observedApdus.Add(a.Data.ToArray()));
216216

217217
// Act

0 commit comments

Comments
 (0)