Skip to content

Commit 3c11890

Browse files
committedNov 29, 2024·
cue: make the tests non-chatty by default
Marcel's various debugging TestX tests do turn on verbose logging in the evaluator always, but regular tests which run by default should not print hundreds of debugging lines to stderr. Just in case Marcel needs to re-enable this again soon, leave the lines commented out, as they're not harmful this way. Signed-off-by: Daniel Martí <[email protected]> Change-Id: I9f36661267546dfa969bbe350683927b190c9fbe Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1204902 Reviewed-by: Paul Jolly <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
1 parent 500ed27 commit 3c11890

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
 

‎cue/types_test.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ import (
3333
"cuelang.org/go/internal/astinternal"
3434
"cuelang.org/go/internal/core/adt"
3535
"cuelang.org/go/internal/core/debug"
36-
"cuelang.org/go/internal/core/runtime"
37-
"cuelang.org/go/internal/cuedebug"
3836
"cuelang.org/go/internal/cuetdtest"
3937
"cuelang.org/go/internal/cuetest"
4038
"cuelang.org/go/internal/tdtest"
@@ -2204,8 +2202,8 @@ func TestUnify2(t *testing.T) {
22042202
a := ctx.CompileString(tc.a)
22052203
b := ctx.CompileString(tc.b)
22062204

2207-
r := (*runtime.Runtime)(ctx)
2208-
r.SetDebugOptions(&cuedebug.Config{LogEval: 1})
2205+
// r := (*runtime.Runtime)(ctx)
2206+
// r.SetDebugOptions(&cuedebug.Config{LogEval: 1})
22092207

22102208
c := a.Unify(b)
22112209

0 commit comments

Comments
 (0)
Please sign in to comment.