Skip to content

Commit 5bf1667

Browse files
takaokoujiGemini
andcommitted
test: update mock expiresAt to future date to pass CI
- Fixed unit tests failing due to immediate group expiration when expiresAt was in the past. - Added missing heartbeatIntervalSeconds to mock responses. Co-Authored-By: Gemini <noreply@google.com>
1 parent 96714e0 commit 5bf1667

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

test/unit/extension_mesh_v2_service.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,22 @@ test('MeshV2Service Cost Tracking', t => {
3535
id: 'g1',
3636
name: 'G1',
3737
domain: 'd1',
38-
expiresAt: '2026-01-01T00:00:00Z'
38+
expiresAt: '2099-01-01T00:00:00Z',
39+
heartbeatIntervalSeconds: 60
3940
},
4041
joinGroup: {
4142
id: 'n1',
4243
domain: 'd1',
43-
expiresAt: '2026-01-01T00:00:00Z'
44+
expiresAt: '2099-01-01T00:00:00Z',
45+
heartbeatIntervalSeconds: 120
4446
},
4547
renewHeartbeat: {
46-
expiresAt: '2026-01-01T00:00:00Z'
48+
expiresAt: '2099-01-01T00:00:00Z',
49+
heartbeatIntervalSeconds: 60
4750
},
4851
sendMemberHeartbeat: {
49-
expiresAt: '2026-01-01T00:00:00Z'
52+
expiresAt: '2099-01-01T00:00:00Z',
53+
heartbeatIntervalSeconds: 120
5054
}
5155
}
5256
}),

test/unit/mesh_service_v2_global_vars.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ test('MeshV2Service Global Variables', t => {
104104
id: 'group1',
105105
name: 'groupName',
106106
domain: 'domain1',
107-
expiresAt: '2025-12-30T12:00:00Z'
107+
expiresAt: '2099-01-01T00:00:00Z',
108+
heartbeatIntervalSeconds: 60
108109
}
109110
}
110111
}),

0 commit comments

Comments
 (0)