switch os.ReadFile to ioutil.ReadFile due to Ubuntu 15 test failing
parent
e5c082de35
commit
f76d33a68c
|
@ -3,6 +3,7 @@ package mastodon
|
|||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"os"
|
||||
|
@ -708,7 +709,7 @@ func TestUploadMedia(t *testing.T) {
|
|||
if writerAttachment.ID != "123" {
|
||||
t.Fatalf("want %q but %q", "123", attachment.ID)
|
||||
}
|
||||
bytes, err := os.ReadFile("testdata/logo.png")
|
||||
bytes, err := ioutil.ReadFile("testdata/logo.png")
|
||||
if err != nil {
|
||||
t.Fatalf("could not open file: %v", err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue