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
parent e1ce3f0458
commit b04b637d66
No known key found for this signature in database
GPG key ID: ACBD71263BF42D00

View file

@ -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