fix tests
parent
66bdef9e3f
commit
37f81e89c8
2
go.sum
2
go.sum
|
|
@ -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/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/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/go.mod h1:WRYVfgb2PBMLZ/muaSpOc/4H4fYsOPnHOaGnBoJ+hGE=
|
||||
github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM=
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ func TestPodHeader(t *testing.T) {
|
|||
|
||||
func TestPodFields(t *testing.T) {
|
||||
r := newPod().Fields("blee")
|
||||
assert.Equal(t, "fred", r[0])
|
||||
assert.Equal(t, resource.Pad("fred", 42), r[0])
|
||||
}
|
||||
|
||||
func TestPodMarshal(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ func TestLogBufferCleanse(t *testing.T) {
|
|||
func TestLogBufferDecorate(t *testing.T) {
|
||||
l := "hello k9s"
|
||||
var b *logBuffer
|
||||
assert.Equal(t, "["+newLogColor+"::]"+l+"[::]", b.decorateLine(l))
|
||||
assert.Equal(t, l, b.decorateLine(l))
|
||||
}
|
||||
|
||||
func TestLogBufferTrimLine(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue