diff --git a/updater/osv/osv_test.go b/updater/osv/osv_test.go index f1e142ac9..6504d3cb8 100644 --- a/updater/osv/osv_test.go +++ b/updater/osv/osv_test.go @@ -56,6 +56,9 @@ func (a *apiStub) ServeHTTP(w http.ResponseWriter, r *http.Request) { switch { case p == "/": p = "list.xml." + r.URL.Query().Get(`continuation-token`) + if p == "list.xml." { + p = "list.xml" + } f, err := sys.Open(p) if err != nil { a.Error(err) diff --git a/updater/osv/s3_test.go b/updater/osv/s3_test.go index 8535ecad5..9ccdb21cb 100644 --- a/updater/osv/s3_test.go +++ b/updater/osv/s3_test.go @@ -7,7 +7,7 @@ import ( ) func TestXML(t *testing.T) { - f, err := os.Open("testdata/list.xml.") + f, err := os.Open("testdata/list.xml") if err != nil { t.Fatal(err) } diff --git a/updater/osv/testdata/list.xml. b/updater/osv/testdata/list.xml similarity index 100% rename from updater/osv/testdata/list.xml. rename to updater/osv/testdata/list.xml