Skip to content

Commit 4c473e6

Browse files
authored
fix(slack): upload test results to message (#333)
Slack: Fix uploading test results to message
1 parent 571750e commit 4c473e6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/slack/client.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@ func (w *slackClientWrapper) AddFileToThreads(slackMessages map[string]string, f
5050
Content: content,
5151
Channel: channelID,
5252
ThreadTimestamp: ts,
53+
Filename: fileName,
54+
FileSize: len(content), // the size (in bytes) of the file being uploaded
5355
}
5456
if _, err := w.client.UploadFileV2(fileParams); err != nil {
55-
return fmt.Errorf("error while uploading output to %s in slack channel %s: %w", ts, channelID, err)
57+
return fmt.Errorf("error while uploading output %s in slack channel %s: %w", fileName, channelID, err)
5658
}
5759
}
5860

0 commit comments

Comments
 (0)