mirror of https://github.com/hashicorp/consul
fix failing unit test
parent
c76765bc06
commit
01a6157b9f
|
@ -743,7 +743,7 @@ func requireHasHeadersSet(t *testing.T, a *TestAgent, path string, contentType s
|
|||
"X-XSS-Protection header value incorrect")
|
||||
|
||||
require.Equal(t, contentType, hdrs.Get("Content-Type"),
|
||||
"Reponse Content-Type header value incorrect")
|
||||
"Response Content-Type header value incorrect")
|
||||
}
|
||||
|
||||
func TestUIResponseHeaders(t *testing.T) {
|
||||
|
|
|
@ -935,11 +935,11 @@ func TestAPI_Headers(t *testing.T) {
|
|||
|
||||
_, _, err = kv.Get("test-headers", nil)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, "", request.Header.Get("Content-Type"))
|
||||
require.Equal(t, "application/json", request.Header.Get("Content-Type"))
|
||||
|
||||
_, err = kv.Delete("test-headers", nil)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, "", request.Header.Get("Content-Type"))
|
||||
require.Equal(t, "application/json", request.Header.Get("Content-Type"))
|
||||
|
||||
err = c.Snapshot().Restore(nil, strings.NewReader("foo"))
|
||||
require.Error(t, err)
|
||||
|
|
Loading…
Reference in New Issue