From 8c5e36159e293f91363d85a05da7f2f117ae8b52 Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Fri, 25 Feb 2022 06:41:49 -0800 Subject: [PATCH] abci: use no-op loggers in the examples (#7996) This averts a rare but annoying log-after-test race condition. --- abci/example/example_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/abci/example/example_test.go b/abci/example/example_test.go index e10feb76c..bbe28d664 100644 --- a/abci/example/example_test.go +++ b/abci/example/example_test.go @@ -31,18 +31,18 @@ func init() { func TestKVStore(t *testing.T) { ctx, cancel := context.WithCancel(context.Background()) defer cancel() - logger := log.NewTestingLogger(t) + logger := log.NewNopLogger() - logger.Info("### Testing KVStore") + t.Log("### Testing KVStore") testBulk(ctx, t, logger, kvstore.NewApplication()) } func TestBaseApp(t *testing.T) { ctx, cancel := context.WithCancel(context.Background()) defer cancel() - logger := log.NewTestingLogger(t) + logger := log.NewNopLogger() - logger.Info("### Testing BaseApp") + t.Log("### Testing BaseApp") testBulk(ctx, t, logger, types.NewBaseApplication()) } @@ -50,9 +50,9 @@ func TestGRPC(t *testing.T) { ctx, cancel := context.WithCancel(context.Background()) defer cancel() - logger := log.NewTestingLogger(t) + logger := log.NewNopLogger() - logger.Info("### Testing GRPC") + t.Log("### Testing GRPC") testGRPCSync(ctx, t, logger, types.NewGRPCApplication(types.NewBaseApplication())) }