Skip to content

Commit 80e519b

Browse files
committed
FIXME: remove
1 parent 9607364 commit 80e519b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

clusterloader2/pkg/measurement/common/slos/api_responsiveness_prometheus_test.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,3 +770,20 @@ func TestAPIResponsivenessCustomThresholds(t *testing.T) {
770770
})
771771
}
772772
}
773+
774+
// FIXME: Remove it.
775+
func TestKlog(t *testing.T) {
776+
klog.LogToStderr(false)
777+
defer klog.LogToStderr(true)
778+
changeLoggingVerbosity(t, "2")
779+
780+
buf := bytes.NewBuffer(nil)
781+
klog.SetOutput(buf)
782+
783+
klog.V(2).Info("rrr")
784+
785+
klog.Flush()
786+
787+
assert.Contains(t, buf.String(), "rrus")
788+
}
789+

0 commit comments

Comments
 (0)