Merge pull request #14878 from overleaf/tm-compile-timeout-20s-split-test-fix
Fix for incorrect split test assignment function calls GitOrigin-RevId: e942ee78a2a5fb3a6a50b6f73eb212afdccbe63d
This commit is contained in:
committed by
Copybot
parent
3487ddbc81
commit
7939abdcab
@@ -74,13 +74,13 @@ async function joinProject(req, res, next) {
|
|||||||
// Compile timeout 20s test
|
// Compile timeout 20s test
|
||||||
if (project.features?.compileTimeout <= 60) {
|
if (project.features?.compileTimeout <= 60) {
|
||||||
const compileAssignment =
|
const compileAssignment =
|
||||||
await SplitTestHandler.promises.getAssignmentForMongoUser(
|
await SplitTestHandler.promises.getAssignmentForUser(
|
||||||
project.owner._id,
|
project.owner._id,
|
||||||
'compile-backend-class-n2d'
|
'compile-backend-class-n2d'
|
||||||
)
|
)
|
||||||
if (compileAssignment?.variant === 'n2d') {
|
if (compileAssignment?.variant === 'n2d') {
|
||||||
const timeoutAssignment =
|
const timeoutAssignment =
|
||||||
await SplitTestHandler.promises.getAssignmentForMongoUser(
|
await SplitTestHandler.promises.getAssignmentForUser(
|
||||||
project.owner._id,
|
project.owner._id,
|
||||||
'compile-timeout-20s'
|
'compile-timeout-20s'
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user