Ensure consistent AggregatedReaction screenshots
Different system locales can generate different screenshots, causing CI to be unhappy. Hardcoding a locale ensures the same date format is always used. Signed-off-by: Joe Groocock <me@frebib.net>
This commit is contained in:
parent
6a9f233283
commit
5529345bf1
3 changed files with 6 additions and 6 deletions
|
|
@ -38,10 +38,10 @@ fun anAggregatedReaction(
|
||||||
count: Int = 1,
|
count: Int = 1,
|
||||||
isHighlighted: Boolean = false,
|
isHighlighted: Boolean = false,
|
||||||
): AggregatedReaction {
|
): AggregatedReaction {
|
||||||
|
val timeFormatter = DateFormat.getTimeInstance(DateFormat.SHORT, java.util.Locale.US)
|
||||||
|
val date = Date(1_689_061_264L)
|
||||||
val senders = buildList {
|
val senders = buildList {
|
||||||
repeat(count) { index ->
|
repeat(count) { index ->
|
||||||
val timeFormatter = DateFormat.getTimeInstance(DateFormat.SHORT)
|
|
||||||
val date = Date(1_689_061_264L)
|
|
||||||
add(
|
add(
|
||||||
AggregatedReactionSender(
|
AggregatedReactionSender(
|
||||||
senderId = if (isHighlighted && index == 0) userId else UserId("@user$index:server.org"),
|
senderId = if (isHighlighted && index == 0) userId else UserId("@user$index:server.org"),
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:9490990c863318390d0f088ff82ad01a688c81cada63d749872b22b633fa12fe
|
oid sha256:65eb29b745fabe2587019c169a48a862b129a3ece30cf9bc82aff09c67878b35
|
||||||
size 23040
|
size 23180
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:730c2c5ab52209366611546dbdbbed62214f6f5e13328be66cce5f08d8f4f0e5
|
oid sha256:c1cf0091d377d8018d14804433aaa67d1b0b510778b6f8a4e8a73faff2b4c782
|
||||||
size 23125
|
size 23280
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue