From 556d8d51bc7db7873ea3113b17723c1c4cef3d18 Mon Sep 17 00:00:00 2001 From: Joshua Gutow Date: Tue, 22 Mar 2022 10:42:06 -0700 Subject: [PATCH] opnode: Quiet logging during testing This enables the nice test ouput with `go test -v` that lists each test without polluting the output with logs from passing tests. --- opnode/rollup/driver/state_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opnode/rollup/driver/state_test.go b/opnode/rollup/driver/state_test.go index 112df0393..b3848e476 100644 --- a/opnode/rollup/driver/state_test.go +++ b/opnode/rollup/driver/state_test.go @@ -128,7 +128,7 @@ type stateTestCase struct { } func (tc *stateTestCase) Run(t *testing.T) { - log := testlog.Logger(t, log.LvlTrace) + log := testlog.Logger(t, log.LvlError) chainSource := NewFakeChainSource(tc.l1Chains, tc.l2Chains, log) l1headsCh := make(chan eth.L1BlockRef, 10) // Unbuffered channels to force a sync point between the test and the state loop.