mirror of
https://github.com/restic/restic.git
synced 2025-02-25 07:23:22 +00:00
Fix s3 backend test
This commit is contained in:
parent
6d1552af51
commit
ed2a4ba1d5
1 changed files with 5 additions and 6 deletions
|
@ -4,15 +4,14 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
bes3 "github.com/restic/restic/backend/s3"
|
bes3 "github.com/restic/restic/backend/s3"
|
||||||
. "github.com/restic/restic/test"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func setupS3Backend(t *testing.T) *bes3.S3Backend {
|
|
||||||
return bes3.Open("play.minio.io:9000", "restictestbucket")
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestS3Backend(t *testing.T) {
|
func TestS3Backend(t *testing.T) {
|
||||||
s := setupS3Backend(t)
|
s, err := bes3.Open("play.minio.io:9000", "restictestbucket")
|
||||||
|
|
||||||
|
if err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
testBackend(s, t)
|
testBackend(s, t)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue