64 lines
3.3 KiB
Diff
64 lines
3.3 KiB
Diff
|
From a393bb1d7e82b64833f7ab835ca13a7b99cb9af9 Mon Sep 17 00:00:00 2001
|
||
|
From: Taylor Blau <me@ttaylorr.com>
|
||
|
Date: Thu, 14 Dec 2017 21:07:06 -0500
|
||
|
Subject: [PATCH] test/git-lfs-test-server-api: use correct formatting verb
|
||
|
|
||
|
---
|
||
|
test/git-lfs-test-server-api/testdownload.go | 4 ++--
|
||
|
test/git-lfs-test-server-api/testupload.go | 6 +++---
|
||
|
2 files changed, 5 insertions(+), 5 deletions(-)
|
||
|
|
||
|
diff --git a/test/git-lfs-test-server-api/testdownload.go b/test/git-lfs-test-server-api/testdownload.go
|
||
|
index a3e6503f4..35fe321a3 100644
|
||
|
--- a/test/git-lfs-test-server-api/testdownload.go
|
||
|
+++ b/test/git-lfs-test-server-api/testdownload.go
|
||
|
@@ -52,7 +52,7 @@ func downloadAllMissing(manifest *tq.Manifest, oidsExist, oidsMissing []TestObje
|
||
|
for _, o := range retobjs {
|
||
|
link, _ := o.Rel("download")
|
||
|
if link != nil {
|
||
|
- errbuf.WriteString(fmt.Sprintf("Download link should not exist for %s, was %s\n", o.Oid, link))
|
||
|
+ errbuf.WriteString(fmt.Sprintf("Download link should not exist for %s, was %+v\n", o.Oid, link))
|
||
|
}
|
||
|
if o.Error == nil {
|
||
|
errbuf.WriteString(fmt.Sprintf("Download should include an error for missing object %s\n", o.Oid))
|
||
|
@@ -96,7 +96,7 @@ func downloadMixed(manifest *tq.Manifest, oidsExist, oidsMissing []TestObject) e
|
||
|
link, _ := o.Rel("download")
|
||
|
if missingSet.Contains(o.Oid) {
|
||
|
if link != nil {
|
||
|
- errbuf.WriteString(fmt.Sprintf("Download link should not exist for %s, was %s\n", o.Oid, link))
|
||
|
+ errbuf.WriteString(fmt.Sprintf("Download link should not exist for %s, was %+v\n", o.Oid, link))
|
||
|
}
|
||
|
if o.Error == nil {
|
||
|
errbuf.WriteString(fmt.Sprintf("Download should include an error for missing object %s", o.Oid))
|
||
|
diff --git a/test/git-lfs-test-server-api/testupload.go b/test/git-lfs-test-server-api/testupload.go
|
||
|
index e7b4552d1..dde5e9ec1 100644
|
||
|
--- a/test/git-lfs-test-server-api/testupload.go
|
||
|
+++ b/test/git-lfs-test-server-api/testupload.go
|
||
|
@@ -53,7 +53,7 @@ func uploadAllExists(manifest *tq.Manifest, oidsExist, oidsMissing []TestObject)
|
||
|
for _, o := range retobjs {
|
||
|
link, _ := o.Rel("upload")
|
||
|
if link == nil {
|
||
|
- errbuf.WriteString(fmt.Sprintf("Upload link should not exist for %s, was %s\n", o.Oid, link))
|
||
|
+ errbuf.WriteString(fmt.Sprintf("Upload link should not exist for %s, was %+v\n", o.Oid, link))
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@@ -92,7 +92,7 @@ func uploadMixed(manifest *tq.Manifest, oidsExist, oidsMissing []TestObject) err
|
||
|
link, _ := o.Rel("upload")
|
||
|
if existSet.Contains(o.Oid) {
|
||
|
if link != nil {
|
||
|
- errbuf.WriteString(fmt.Sprintf("Upload link should not exist for %s, was %s\n", o.Oid, link))
|
||
|
+ errbuf.WriteString(fmt.Sprintf("Upload link should not exist for %s, was %+v\n", o.Oid, link))
|
||
|
}
|
||
|
}
|
||
|
if missingSet.Contains(o.Oid) && link == nil {
|
||
|
@@ -166,7 +166,7 @@ func uploadEdgeCases(manifest *tq.Manifest, oidsExist, oidsMissing []TestObject)
|
||
|
if code, iserror := errorCodeMap[o.Oid]; iserror {
|
||
|
reason, _ := errorReasonMap[o.Oid]
|
||
|
if link != nil {
|
||
|
- errbuf.WriteString(fmt.Sprintf("Upload link should not exist for %s, was %s, reason %s\n", o.Oid, link, reason))
|
||
|
+ errbuf.WriteString(fmt.Sprintf("Upload link should not exist for %s, was %+v, reason %s\n", o.Oid, link, reason))
|
||
|
}
|
||
|
if o.Error == nil {
|
||
|
errbuf.WriteString(fmt.Sprintf("Upload should include an error for invalid object %s, reason %s", o.Oid, reason))
|