Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
3pointer committed Mar 3, 2020
1 parent 6eaa435 commit c6121ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/storage/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var _ = Suite(&testStorageSuite{})

func (r *testStorageSuite) TestCreateStorage(c *C) {
_, err := ParseBackend("1invalid:", nil)
c.Assert(err, ErrorMatches, "parse 1invalid:: first path segment in URL cannot contain colon")
c.Assert(err, ErrorMatches, "parse (.*)1invalid:(.*): first path segment in URL cannot contain colon")

_, err = ParseBackend("net:storage", nil)
c.Assert(err, ErrorMatches, "storage net not support yet")
Expand Down
2 changes: 1 addition & 1 deletion pkg/storage/s3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (r *testStorageSuite) TestApply(c *C) {
options: S3BackendOptions{
Endpoint: "!http:12345",
},
errMsg: "parse !http:12345: first path segment in URL cannot contain colon",
errMsg: "parse (.*)!http:12345(.*): first path segment in URL cannot contain colon",
errReturn: true,
},
}
Expand Down

0 comments on commit c6121ba

Please sign in to comment.