From b04b637d66c07eacb5fbe812fae48f1cb3fba5c8 Mon Sep 17 00:00:00 2001 From: Brian Meek Date: Fri, 2 Sep 2022 14:41:45 -0700 Subject: [PATCH] Log events as string that are found when the dendrite-upgrade-tests fail to aid debugging Signed-off-by: Brian Meek --- cmd/dendrite-upgrade-tests/tests.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/dendrite-upgrade-tests/tests.go b/cmd/dendrite-upgrade-tests/tests.go index 1f72177dc..8c4ae8aaf 100644 --- a/cmd/dendrite-upgrade-tests/tests.go +++ b/cmd/dendrite-upgrade-tests/tests.go @@ -191,7 +191,7 @@ func verifyTestsRan(baseURL string, branchNames []string) error { wantMsgCount := len(branchNames) * 4 if msgCount != wantMsgCount { msgArrayJSON, _ := json.Marshal(msgArray) - return fmt.Errorf("got %d messages in global room, want %d msgArray %v", msgCount, wantMsgCount, msgArrayJSON) + return fmt.Errorf("got %d messages in global room, want %d msgArray %v", msgCount, wantMsgCount, string(msgArrayJSON)) } log.Println(" messages exist: OK") return nil