Update tests/integration/api_packages_pypi_test.go
(cherry picked from commit 14badb37fed79a7745ff7d76144c80686846b108)
This commit is contained in:
parent
aad193c4a6
commit
bb7b211c0c
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ func TestPackagePyPI(t *testing.T) {
|
||||||
nodes := htmlDoc.doc.Find("a").Nodes
|
nodes := htmlDoc.doc.Find("a").Nodes
|
||||||
assert.Len(t, nodes, 2)
|
assert.Len(t, nodes, 2)
|
||||||
|
|
||||||
hrefMatcher := regexp.MustCompile(fmt.Sprintf(`%s/files/%s/%s/test\..+#sha256-%s`, root, regexp.QuoteMeta(packageName), regexp.QuoteMeta(packageVersion), hashSHA256))
|
hrefMatcher := regexp.MustCompile(fmt.Sprintf(`%s/files/%s/%s/test\..+#sha256=%s`, root, regexp.QuoteMeta(packageName), regexp.QuoteMeta(packageVersion), hashSHA256))
|
||||||
|
|
||||||
for _, a := range nodes {
|
for _, a := range nodes {
|
||||||
for _, att := range a.Attr {
|
for _, att := range a.Attr {
|
||||||
|
|
Loading…
Reference in a new issue