1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-19 02:27:03 +00:00

chore: remove refs to deprecated io/ioutil (#376)

Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
This commit is contained in:
guangwu
2023-08-08 07:25:36 +08:00
committed by GitHub
parent 926f9f3804
commit 0ae452ed17
8 changed files with 16 additions and 19 deletions

View File

@@ -3,7 +3,7 @@ package test
import (
"bytes"
"fmt"
"io/ioutil"
"io"
"net/mail"
"strings"
"testing"
@@ -159,7 +159,7 @@ func testContent(t *testing.T, store storage.Store, extHost *extension.Host) {
if err != nil {
t.Fatal(err)
}
got, err := ioutil.ReadAll(r)
got, err := io.ReadAll(r)
if err != nil {
t.Fatal(err)
}
@@ -455,7 +455,7 @@ func DeliverToStore(
meta.To[0].Address, meta.From.Address, subject)
delivery := &message.Delivery{
Meta: meta,
Reader: ioutil.NopCloser(strings.NewReader(testMsg)),
Reader: io.NopCloser(strings.NewReader(testMsg)),
}
id, err := store.AddMessage(delivery)
if err != nil {