Skip to content

Commit f9d04ae

Browse files
committed
Compile failures
1 parent 8a173dd commit f9d04ae

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/federation_room_get_missing_events_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ func TestCorruptedAuthChain(t *testing.T) {
638638
federation.HandleTransactionRequests(nil, nil),
639639
federation.HandleInviteRequests(nil),
640640
)
641-
// We expect to be pushed events that we don't care about responding to (not relevant to the test)
641+
// We expect to be pushed events that we don't care about responding to (not relevant to the test)
642642
srv.UnexpectedRequestsAreErrors = false
643643
cancel := srv.Listen()
644644
defer cancel()
@@ -730,7 +730,7 @@ func TestCorruptedAuthChain(t *testing.T) {
730730
PrevEvents: []string{eventD.EventID()},
731731
AuthEvents: []string{createEvent.EventID(), plEvent.EventID(), jrEvent.EventID(), eventD.EventID()},
732732
})
733-
// We include this in auth_events for subsequent events below.
733+
// We include this in auth_events for subsequent events below.
734734
srvRoom.AddEvent(eventE)
735735

736736
// Create 3 unrelated events (one for /send, one for /gme, one for /state_ids snapshot)
@@ -835,15 +835,15 @@ func TestCorruptedAuthChain(t *testing.T) {
835835
eventID := vars["eventID"]
836836
var event gomatrixserverlib.PDU
837837
// find the event
838-
for _, ev := range allEvents {
838+
for _, ev := range allEventsToShare {
839839
if ev.EventID() == eventID {
840840
event = ev
841841
break
842842
}
843843
}
844844
// we should see a request for event B
845845
if eventID == eventB.EventID() {
846-
eventWaiter.Finish()
846+
eventBWaiter.Finish()
847847
}
848848

849849
if event == nil {
@@ -875,7 +875,7 @@ func TestCorruptedAuthChain(t *testing.T) {
875875
// wait for the server to make the requests
876876
gmeWaiter.Wait(t, 5*time.Second)
877877
stateIDWaiter.Wait(t, 5*time.Second)
878-
eventWaiter.Wait(t, 5*time.Second)
878+
eventBWaiter.Wait(t, 5*time.Second)
879879

880880
// let things settle
881881
time.Sleep(time.Second)

0 commit comments

Comments
 (0)