@@ -288,10 +288,10 @@ func TestSync(t *testing.T) {
288288 charlie := srv .UserID ("charlie" )
289289
290290 redactionRoomID := alice .MustCreateRoom (t , map [string ]interface {}{"preset" : "public_chat" })
291- redactionRoom := srv .MustJoinRoom (t , deployment , "hs1" , redactionRoomID , charlie )
291+ redactionRoom := srv .MustJoinRoom (t , deployment , deployment . GetFullyQualifiedHomeserverName ( t , "hs1" ) , redactionRoomID , charlie )
292292
293293 sentinelRoomID := alice .MustCreateRoom (t , map [string ]interface {}{"preset" : "public_chat" })
294- sentinelRoom := srv .MustJoinRoom (t , deployment , "hs1" , sentinelRoomID , charlie )
294+ sentinelRoom := srv .MustJoinRoom (t , deployment , deployment . GetFullyQualifiedHomeserverName ( t , "hs1" ) , sentinelRoomID , charlie )
295295
296296 // charlie creates a bogus redaction, which he sends out, followed by
297297 // a good event - in another room - to act as a sentinel. It's not
@@ -304,7 +304,7 @@ func TestSync(t *testing.T) {
304304 Redacts : "$12345" })
305305 redactionRoom .AddEvent (redactionEvent )
306306 t .Logf ("Created redaction event %s" , redactionEvent .EventID ())
307- srv .MustSendTransaction (t , deployment , "hs1" , []json.RawMessage {redactionEvent .JSON ()}, nil )
307+ srv .MustSendTransaction (t , deployment , deployment . GetFullyQualifiedHomeserverName ( t , "hs1" ) , []json.RawMessage {redactionEvent .JSON ()}, nil )
308308
309309 sentinelEvent := srv .MustCreateEvent (t , sentinelRoom , federation.Event {
310310 Type : "m.room.test" ,
@@ -313,7 +313,7 @@ func TestSync(t *testing.T) {
313313 })
314314 sentinelRoom .AddEvent (sentinelEvent )
315315 t .Logf ("Created sentinel event %s" , sentinelEvent .EventID ())
316- srv .MustSendTransaction (t , deployment , "hs1" , []json.RawMessage {redactionEvent .JSON (), sentinelEvent .JSON ()}, nil )
316+ srv .MustSendTransaction (t , deployment , deployment . GetFullyQualifiedHomeserverName ( t , "hs1" ) , []json.RawMessage {redactionEvent .JSON (), sentinelEvent .JSON ()}, nil )
317317
318318 // wait for the sentinel to arrive
319319 nextBatch := alice .MustSyncUntil (t , client.SyncReq {}, client .SyncTimelineHasEventID (sentinelRoomID , sentinelEvent .EventID ()))
@@ -332,7 +332,7 @@ func TestSync(t *testing.T) {
332332 pdus [i ] = ev .JSON ()
333333 lastSentEventId = ev .EventID ()
334334 }
335- srv .MustSendTransaction (t , deployment , "hs1" , pdus , nil )
335+ srv .MustSendTransaction (t , deployment , deployment . GetFullyQualifiedHomeserverName ( t , "hs1" ) , pdus , nil )
336336 t .Logf ("Sent filler events, with final event %s" , lastSentEventId )
337337
338338 // sync, starting from the same ?since each time, until the final message turns up.
@@ -463,7 +463,7 @@ func TestSyncTimelineGap(t *testing.T) {
463463 charlie := srv .UserID ("charlie" )
464464
465465 roomID := alice .MustCreateRoom (t , map [string ]interface {}{"preset" : "public_chat" })
466- room := srv .MustJoinRoom (t , deployment , "hs1" , roomID , charlie )
466+ room := srv .MustJoinRoom (t , deployment , deployment . GetFullyQualifiedHomeserverName ( t , "hs1" ) , roomID , charlie )
467467
468468 filterID := createFilter (t , alice , map [string ]interface {}{
469469 "room" : map [string ]interface {}{
@@ -515,7 +515,7 @@ func TestSyncTimelineGap(t *testing.T) {
515515 // requests.
516516 respondToGetMissingEventsEndpoints (t , srv , room , missingEvents )
517517
518- srv .MustSendTransaction (t , deployment , "hs1" , []json.RawMessage {lastEvent .JSON ()}, nil )
518+ srv .MustSendTransaction (t , deployment , deployment . GetFullyQualifiedHomeserverName ( t , "hs1" ) , []json.RawMessage {lastEvent .JSON ()}, nil )
519519
520520 // We now test two different modes of /sync work. The first is when we are
521521 // syncing when the server receives the `lastEvent` (and so, at least
0 commit comments