Skip to content

Commit 96b60fd

Browse files
committed
fixup! Add message to assertions on bytes
1 parent 6a89f65 commit 96b60fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tests/otp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// otp.rs
22

3-
// Copyright (C) 2019-2020 The Nitrocli Developers
3+
// Copyright (C) 2019-2021 The Nitrocli Developers
44
// SPDX-License-Identifier: GPL-3.0-or-later
55

66
use super::*;
@@ -19,7 +19,7 @@ fn set_invalid_slot_raw(model: nitrokey::Model) {
1919
&err[..24],
2020
b"Failed to write OTP slot",
2121
"{}",
22-
String::from_utf8_lossy(&out)
22+
String::from_utf8_lossy(&err)
2323
);
2424
}
2525

0 commit comments

Comments
 (0)