From bf169b2ac368e7697d60c500e4d91cd51aff9785 Mon Sep 17 00:00:00 2001 From: Julie Qiu Date: Wed, 15 Jul 2020 22:27:50 -0400 Subject: internal/derrors: rename ToHTTPStatus to ToStatus ToHTTPStatus is renamed to ToStatus, since several derrors codes are not HTTP status codes. Change-Id: I41bf1452fdbbafe1a4f752bc3092e39515a2db4b Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/242882 Reviewed-by: Jonathan Amsterdam --- internal/postgres/insert_module_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/postgres/insert_module_test.go') diff --git a/internal/postgres/insert_module_test.go b/internal/postgres/insert_module_test.go index 797282e4..84208059 100644 --- a/internal/postgres/insert_module_test.go +++ b/internal/postgres/insert_module_test.go @@ -337,7 +337,7 @@ func TestPostgres_NewerAlternative(t *testing.T) { ) err := testDB.UpsertModuleVersionState(ctx, modulePath, altVersion, "appVersion", time.Now(), - derrors.ToHTTPStatus(derrors.AlternativeModule), "example.com/mod", derrors.AlternativeModule, nil) + derrors.ToStatus(derrors.AlternativeModule), "example.com/mod", derrors.AlternativeModule, nil) if err != nil { t.Fatal(err) } -- cgit v1.3-5-g9baa