Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
6deb31e4
Unverified
Commit
6deb31e4
authored
Oct 30, 2025
by
Sebastian "Sebbie" Silbermann
Committed by
GitHub
Oct 30, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[test] Deflake tests comparing two random numbers (#85571)
parent
17c65509
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
page.tsx
...onents/app/node-crypto/random-int/between/cached/page.tsx
+2
-2
page.tsx
...mponents/app/node-crypto/random-int/up-to/cached/page.tsx
+1
-1
No files found.
test/e2e/app-dir/cache-components/app/node-crypto/random-int/between/cached/page.tsx
View file @
6deb31e4
...
...
@@ -25,8 +25,8 @@ async function getRandomIntBetween(nonce: number) {
if
(
nonce
===
2
)
{
// We want to exercise the case where the function arguments are length 3
// but the third arg is still not a callback so it runs sync
return
crypto
.
randomInt
(
128
,
256
,
undefined
)
as
undefined
as
number
return
crypto
.
randomInt
(
0
,
2
**
48
-
1
,
undefined
)
as
undefined
as
number
}
else
{
return
crypto
.
randomInt
(
128
,
256
)
return
crypto
.
randomInt
(
0
,
2
**
48
-
1
)
}
}
test/e2e/app-dir/cache-components/app/node-crypto/random-int/up-to/cached/page.tsx
View file @
6deb31e4
...
...
@@ -22,5 +22,5 @@ export default async function Page() {
async
function
getRandomIntUpTo
(
_nonce
:
number
)
{
'use cache'
return
crypto
.
randomInt
(
128
)
return
crypto
.
randomInt
(
2
**
48
-
1
)
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment