aboutsummaryrefslogtreecommitdiff
path: root/internal/postgres/insert_module_test.go
diff options
context:
space:
mode:
authorJulie Qiu <julie@golang.org>2020-07-15 22:27:50 -0400
committerJulie Qiu <julie@golang.org>2020-07-16 14:19:09 +0000
commitbf169b2ac368e7697d60c500e4d91cd51aff9785 (patch)
tree767f9dd1cd27cf12456717aba659b8ba7561f4aa /internal/postgres/insert_module_test.go
parent606e69c6edd93487c16c4228812263e9d7d3cedc (diff)
downloadgo-x-pkgsite-bf169b2ac368e7697d60c500e4d91cd51aff9785.tar.xz
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 <jba@google.com>
Diffstat (limited to 'internal/postgres/insert_module_test.go')
-rw-r--r--internal/postgres/insert_module_test.go2
1 files changed, 1 insertions, 1 deletions
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)
}