fix tests

mine
derailed 2019-02-28 22:53:03 -07:00
parent 66bdef9e3f
commit 37f81e89c8
3 changed files with 2 additions and 4 deletions

2
go.sum
View File

@ -13,8 +13,6 @@ github.com/census-instrumentation/opencensus-proto v0.1.0-0.20181214143942-ba49f
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/derailed/tview v0.1.1 h1:s9rGoufUkZYsIFCfV3M23yHxTKa7Rt6n+QFaOgnirpk=
github.com/derailed/tview v0.1.1/go.mod h1:WRYVfgb2PBMLZ/muaSpOc/4H4fYsOPnHOaGnBoJ+hGE=
github.com/derailed/tview v0.1.2 h1:T/XDdjvWrSdhi68bKE0O87O7oHD/JxmfU4IQ13y4fmc= github.com/derailed/tview v0.1.2 h1:T/XDdjvWrSdhi68bKE0O87O7oHD/JxmfU4IQ13y4fmc=
github.com/derailed/tview v0.1.2/go.mod h1:WRYVfgb2PBMLZ/muaSpOc/4H4fYsOPnHOaGnBoJ+hGE= github.com/derailed/tview v0.1.2/go.mod h1:WRYVfgb2PBMLZ/muaSpOc/4H4fYsOPnHOaGnBoJ+hGE=
github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM= github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM=

View File

@ -29,7 +29,7 @@ func TestPodHeader(t *testing.T) {
func TestPodFields(t *testing.T) { func TestPodFields(t *testing.T) {
r := newPod().Fields("blee") r := newPod().Fields("blee")
assert.Equal(t, "fred", r[0]) assert.Equal(t, resource.Pad("fred", 42), r[0])
} }
func TestPodMarshal(t *testing.T) { func TestPodMarshal(t *testing.T) {

View File

@ -44,7 +44,7 @@ func TestLogBufferCleanse(t *testing.T) {
func TestLogBufferDecorate(t *testing.T) { func TestLogBufferDecorate(t *testing.T) {
l := "hello k9s" l := "hello k9s"
var b *logBuffer var b *logBuffer
assert.Equal(t, "["+newLogColor+"::]"+l+"[::]", b.decorateLine(l)) assert.Equal(t, l, b.decorateLine(l))
} }
func TestLogBufferTrimLine(t *testing.T) { func TestLogBufferTrimLine(t *testing.T) {