File tree Expand file tree Collapse file tree 1 file changed +0
-29
lines changed
src/test/java/com/google/firebase/auth Expand file tree Collapse file tree 1 file changed +0
-29
lines changed Original file line number Diff line number Diff line change @@ -344,35 +344,6 @@ public void testLastRefreshTime() throws Exception {
344
344
}
345
345
}
346
346
347
- @ Test
348
- public void testLastRefreshTime () throws Exception {
349
- RandomUser user = RandomUser .create ();
350
- UserRecord newUserRecord = auth .createUser (new CreateRequest ()
351
- .setUid (user .uid )
352
- .setEmail (user .email )
353
- .setEmailVerified (false )
354
- .setPassword ("password" ));
355
-
356
- try {
357
- // New users should not have a lastRefreshTimestamp set.
358
- assertEquals (0 , newUserRecord .getUserMetadata ().getLastRefreshTimestamp ());
359
-
360
- // Login to cause the lastRefreshTimestamp to be set.
361
- signInWithPassword (newUserRecord .getEmail (), "password" );
362
-
363
- UserRecord userRecord = auth .getUser (newUserRecord .getUid ());
364
-
365
- // Ensure the lastRefreshTimestamp is approximately "now" (with a tollerance of 10 minutes).
366
- long now = System .currentTimeMillis ();
367
- long tollerance = TimeUnit .MINUTES .toMillis (10 );
368
- long lastRefreshTimestamp = userRecord .getUserMetadata ().getLastRefreshTimestamp ();
369
- assertTrue (now - tollerance <= lastRefreshTimestamp );
370
- assertTrue (lastRefreshTimestamp <= now + tollerance );
371
- } finally {
372
- auth .deleteUser (newUserRecord .getUid ());
373
- }
374
- }
375
-
376
347
@ Test
377
348
public void testListUsers () throws Exception {
378
349
final List <String > uids = new ArrayList <>();
You can’t perform that action at this time.
0 commit comments