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