Skip to content

Commit c7ee1d8

Browse files
Replace arbitrary timeout with authedClient.SyncUntilTimeout
Co-authored-by: Eric Eastwood <erice@element.io>
1 parent e79b346 commit c7ee1d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/csapi/public_rooms_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func TestPublicRooms(t *testing.T) {
4242
"generic_search_term": "wombles",
4343
},
4444
}),
45-
client.WithRetryUntil(15*time.Second, func(res *http.Response) bool {
45+
client.WithRetryUntil(authedClient.SyncUntilTimeout, func(res *http.Response) bool {
4646
results := parsePublicRoomsResponse(t, res)
4747

4848
if len(results) != 1 {

0 commit comments

Comments
 (0)