File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1041,7 +1041,10 @@ func TestEncryptWithAEAD(t *testing.T) {
1041
1041
if err != nil {
1042
1042
t .Fatal (err )
1043
1043
}
1044
- dec , err := ioutil .ReadAll (m .decrypted )
1044
+ dec , err := io .ReadAll (m .decrypted )
1045
+ if err != nil {
1046
+ t .Fatal (err )
1047
+ }
1045
1048
1046
1049
if ! bytes .Equal (dec , []byte (message )) {
1047
1050
t .Error ("decrypted does not match original" )
Original file line number Diff line number Diff line change @@ -305,7 +305,10 @@ func TestEncryptWithAEAD(t *testing.T) {
305
305
if err != nil {
306
306
t .Fatal (err )
307
307
}
308
- dec , err := ioutil .ReadAll (m .decrypted )
308
+ dec , err := io .ReadAll (m .decrypted )
309
+ if err != nil {
310
+ t .Fatal (err )
311
+ }
309
312
310
313
if ! bytes .Equal (dec , []byte (message )) {
311
314
t .Error ("decrypted does not match original" )
You can’t perform that action at this time.
0 commit comments