Log events as string that are found when the dendrite-upgrade-tests fail to aid debugging

Signed-off-by: Brian Meek <brian@hntlabs.com>
This commit is contained in:
Brian Meek 2022-09-02 14:41:45 -07:00 committed by Tak Wai Wong
parent 9e24a8d9cc
commit 1f0fce6235
No known key found for this signature in database
GPG key ID: 222E4AF2AA1F467D

View file

@ -232,7 +232,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