@@ -19,7 +19,7 @@ const url = env["PROJECT_URL"];
19
19
const token = env [ "PROJECT_ANON_TOKEN" ] ;
20
20
const jwtSecret = env [ "PROJECT_JWT_SECRET" ] ;
21
21
22
- const realtime = { heartbeatIntervalMs : 500 , timeout : 1000 } ;
22
+ const realtime = { heartbeatIntervalMs : 5000 , timeout : 5000 } ;
23
23
const config = { config : { broadcast : { self : true } } } ;
24
24
25
25
let supabase : SupabaseClient | null ;
@@ -102,7 +102,7 @@ describe("presence extension", () => {
102
102
103
103
while ( channel . state == "joining" ) await sleep ( 0.2 ) ;
104
104
105
- const res = await channel . track ( expectedPayload , { timeout : 1000 } ) ;
105
+ const res = await channel . track ( expectedPayload , { timeout : 5000 } ) ;
106
106
if ( res == "timed out" ) error = res ;
107
107
108
108
let presences = result [ 0 ] . newPresences [ 0 ] ;
@@ -135,7 +135,7 @@ describe("presence extension", () => {
135
135
136
136
while ( channel . state == "joining" ) await sleep ( 0.2 ) ;
137
137
138
- const res = await channel . track ( expectedPayload , { timeout : 1000 } ) ;
138
+ const res = await channel . track ( expectedPayload , { timeout : 5000 } ) ;
139
139
if ( res == "timed out" ) error = res ;
140
140
141
141
let presences = result [ 0 ] . newPresences [ 0 ] ;
@@ -162,7 +162,7 @@ describe("authorization check", () => {
162
162
163
163
assertEquals (
164
164
errMessage ,
165
- `"You do not have permissions to read from this Channel topic: ${ topic } "`
165
+ `"Unauthorized: You do not have permissions to read from this Channel topic: ${ topic } "`
166
166
) ;
167
167
} ) ;
168
168
0 commit comments