Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions tests/msc4140/delayed_event_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func TestDelayedEvents(t *testing.T) {
})

t.Run("cannot update a delayed event without an action", func(t *testing.T) {
res := unauthedClient.Do(
res := user.Do(
t,
"POST",
append(getPathForDelayedEvents(), "abc"),
Expand All @@ -211,7 +211,7 @@ func TestDelayedEvents(t *testing.T) {
})

t.Run("cannot update a delayed event with an invalid action", func(t *testing.T) {
res := unauthedClient.Do(
res := user.Do(
t,
"POST",
append(getPathForDelayedEvents(), "abc", "oops"),
Expand All @@ -230,7 +230,7 @@ func TestDelayedEvents(t *testing.T) {
} {
t.Run(fmt.Sprintf("cannot %s a delayed event without a matching delay ID", action), func(t *testing.T) {
t.Parallel()
res := unauthedClient.Do(
res := user.Do(
t,
"POST",
getPathForUpdateDelayedEvent("abc", action),
Expand Down Expand Up @@ -274,7 +274,7 @@ func TestDelayedEvents(t *testing.T) {
})

// Cancel the delayed event
unauthedClient.MustDo(
user.MustDo(
t,
"POST",
getPathForUpdateDelayedEvent(delayID, DelayedEventActionCancel),
Expand Down Expand Up @@ -328,7 +328,7 @@ func TestDelayedEvents(t *testing.T) {
})

// Force the delayed event to be sent immediately
unauthedClient.MustDo(
user.MustDo(
t,
"POST",
getPathForUpdateDelayedEvent(delayID, DelayedEventActionSend),
Expand Down Expand Up @@ -384,7 +384,7 @@ func TestDelayedEvents(t *testing.T) {
})

// Restart the timer on the delayed event
unauthedClient.MustDo(
user.MustDo(
t,
"POST",
getPathForUpdateDelayedEvent(delayID, DelayedEventActionRestart),
Expand Down
Loading