From 886a28640f187b8fddb160576ea7951a6ef732e8 Mon Sep 17 00:00:00 2001 From: Geoff Stuart Date: Thu, 15 Dec 2022 01:05:54 -0500 Subject: [PATCH 1/2] Quiet wdpost logs, add error log to multisig reentrant --- itests/kit/log.go | 1 + itests/multisig_test.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/itests/kit/log.go b/itests/kit/log.go index 2932255d2..beac3895c 100644 --- a/itests/kit/log.go +++ b/itests/kit/log.go @@ -13,6 +13,7 @@ func QuietMiningLogs() { _ = logging.SetLogLevel("chainstore", "ERROR") _ = logging.SetLogLevel("chain", "ERROR") _ = logging.SetLogLevel("sub", "ERROR") + _ = logging.SetLogLevel("wdpost", "ERROR") _ = logging.SetLogLevel("storageminer", "ERROR") _ = logging.SetLogLevel("pubsub", "ERROR") _ = logging.SetLogLevel("gen", "ERROR") diff --git a/itests/multisig_test.go b/itests/multisig_test.go index 63cc2f511..8d1356252 100644 --- a/itests/multisig_test.go +++ b/itests/multisig_test.go @@ -133,7 +133,7 @@ func TestMultisigReentrant(t *testing.T) { sl, err := client.StateReplay(ctx, types.EmptyTSK, pm.Cid()) require.NoError(t, err, "failed to replay reentrant propose message (StateWaitMsg)") - require.Equal(t, 1025, countDepth(sl.ExecutionTrace)) + require.Equal(t, 1025, countDepth(sl.ExecutionTrace), "Failed. Error message was: %s", sl.Error) } func countDepth(trace types.ExecutionTrace) int { From 1d5ccab0040dc42acc21edcaaac05ea85d15e1f1 Mon Sep 17 00:00:00 2001 From: Geoff Stuart Date: Thu, 15 Dec 2022 12:55:56 -0500 Subject: [PATCH 2/2] Update itests/multisig_test.go Co-authored-by: Aayush Rajasekaran --- itests/multisig_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itests/multisig_test.go b/itests/multisig_test.go index 8d1356252..b20dcf16b 100644 --- a/itests/multisig_test.go +++ b/itests/multisig_test.go @@ -133,7 +133,7 @@ func TestMultisigReentrant(t *testing.T) { sl, err := client.StateReplay(ctx, types.EmptyTSK, pm.Cid()) require.NoError(t, err, "failed to replay reentrant propose message (StateWaitMsg)") - require.Equal(t, 1025, countDepth(sl.ExecutionTrace), "Failed. Error message was: %s", sl.Error) + require.Equal(t, 1025, countDepth(sl.ExecutionTrace), "failed: %s", sl.Error) } func countDepth(trace types.ExecutionTrace) int {