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 @@ -1036,7 +1036,10 @@ func TestEncryptWithAEAD(t *testing.T) {
1036
1036
if err != nil {
1037
1037
t .Fatal (err )
1038
1038
}
1039
- dec , err := ioutil .ReadAll (m .decrypted )
1039
+ dec , err := io .ReadAll (m .decrypted )
1040
+ if err != nil {
1041
+ t .Fatal (err )
1042
+ }
1040
1043
1041
1044
if ! bytes .Equal (dec , []byte (message )) {
1042
1045
t .Error ("decrypted does not match original" )
Original file line number Diff line number Diff line change @@ -301,7 +301,10 @@ func TestEncryptWithAEAD(t *testing.T) {
301
301
if err != nil {
302
302
t .Fatal (err )
303
303
}
304
- dec , err := ioutil .ReadAll (m .decrypted )
304
+ dec , err := io .ReadAll (m .decrypted )
305
+ if err != nil {
306
+ t .Fatal (err )
307
+ }
305
308
306
309
if ! bytes .Equal (dec , []byte (message )) {
307
310
t .Error ("decrypted does not match original" )
You can’t perform that action at this time.
0 commit comments