Skip to content

Commit 12ae316

Browse files
committed
fix individual run of TestManifests
I observed that `go test ./diff` works, but `go test .diff -run TestManifests` fails because TestManifests silently relies on TestPrintDiffWithContext to call ansi.DisableColors().
1 parent 59f7768 commit 12ae316

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

diff/diff_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ func assertDiff(t *testing.T, before, after string, context int, stripTrailingCR
169169
}
170170

171171
func TestManifests(t *testing.T) {
172+
ansi.DisableColors(true)
173+
172174
specBeta := map[string]*manifest.MappingResult{
173175
"default, nginx, Deployment (apps)": {
174176

0 commit comments

Comments
 (0)