|
|
5e4b3d0 |
From 45b26527727e2b364b55a94f40466d82c1b7fd6e Mon Sep 17 00:00:00 2001
|
|
|
5e4b3d0 |
From: Jan Chaloupka <jchaloup@redhat.com>
|
|
|
5e4b3d0 |
Date: Sun, 8 Jul 2018 20:41:52 +0200
|
|
|
5e4b3d0 |
Subject: [PATCH] Fix formatting
|
|
|
5e4b3d0 |
|
|
|
5e4b3d0 |
---
|
|
|
5e4b3d0 |
api_test.go | 10 +++++-----
|
|
|
5e4b3d0 |
1 file changed, 5 insertions(+), 5 deletions(-)
|
|
|
5e4b3d0 |
|
|
|
5e4b3d0 |
diff --git a/api_test.go b/api_test.go
|
|
|
5e4b3d0 |
index da943b2..5cf39db 100644
|
|
|
5e4b3d0 |
--- a/api_test.go
|
|
|
5e4b3d0 |
+++ b/api_test.go
|
|
|
5e4b3d0 |
@@ -121,15 +121,15 @@ func TestCustomHeaders(t *testing.T) {
|
|
|
5e4b3d0 |
}
|
|
|
5e4b3d0 |
|
|
|
5e4b3d0 |
if contentType != "x-application/vb" {
|
|
|
5e4b3d0 |
- t.Fatalf("I expected x-application/vb; got ", contentType)
|
|
|
5e4b3d0 |
+ t.Fatalf("I expected x-application/vb; got %v", contentType)
|
|
|
5e4b3d0 |
}
|
|
|
5e4b3d0 |
|
|
|
5e4b3d0 |
if contentLength != "5" {
|
|
|
5e4b3d0 |
- t.Fatalf("I expected 5 byte content length; got ", contentLength)
|
|
|
5e4b3d0 |
+ t.Fatalf("I expected 5 byte content length; got %v", contentLength)
|
|
|
5e4b3d0 |
}
|
|
|
5e4b3d0 |
|
|
|
5e4b3d0 |
if accept != "x-application/c" {
|
|
|
5e4b3d0 |
- t.Fatalf("I expected x-application/c; got ", accept)
|
|
|
5e4b3d0 |
+ t.Fatalf("I expected x-application/c; got %v", accept)
|
|
|
5e4b3d0 |
}
|
|
|
5e4b3d0 |
}
|
|
|
5e4b3d0 |
|
|
|
5e4b3d0 |
@@ -217,10 +217,10 @@ func TestBodilessMethodsAreSentWithoutContentHeaders(t *testing.T) {
|
|
|
5e4b3d0 |
}
|
|
|
5e4b3d0 |
|
|
|
5e4b3d0 |
if len(h["Content-Type"]) != 0 {
|
|
|
5e4b3d0 |
- t.Fatalf("I expected nothing for Content-Type but got ", h["Content-Type"])
|
|
|
5e4b3d0 |
+ t.Fatalf("I expected nothing for Content-Type but got %v", h["Content-Type"])
|
|
|
5e4b3d0 |
}
|
|
|
5e4b3d0 |
|
|
|
5e4b3d0 |
if len(h["Content-Length"]) != 0 {
|
|
|
5e4b3d0 |
- t.Fatalf("I expected nothing for Content-Length but got ", h["Content-Length"])
|
|
|
5e4b3d0 |
+ t.Fatalf("I expected nothing for Content-Length but got %v", h["Content-Length"])
|
|
|
5e4b3d0 |
}
|
|
|
5e4b3d0 |
}
|
|
|
5e4b3d0 |
--
|
|
|
5e4b3d0 |
2.7.5
|
|
|
5e4b3d0 |
|