Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

test(hcc): make WRITE-4 assignable to replaceWithConflictRetry

Alfredo Lopeza8470a475946
diff --git a/host-context-controller/package-lock.json b/host-context-controller/package-lock.json
index efe01cbef..2d8a7846e 100644
--- a/host-context-controller/package-lock.json
+++ b/host-context-controller/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-host-context-controller",
- "version": "0.1.268",
+ "version": "0.1.269",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-host-context-controller",
- "version": "0.1.268",
+ "version": "0.1.269",
"license": "SEE LICENSE IN LICENSE",
"dependencies": {
"@clerum/image-policy": "file:../packages/image-policy",
diff --git a/host-context-controller/package.json b/host-context-controller/package.json
index f3ec65077..ec38c9e19 100644
--- a/host-context-controller/package.json
+++ b/host-context-controller/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-host-context-controller",
- "version": "0.1.268",
+ "version": "0.1.269",
"description": "Host Context Controller - provides McpServer CRDs to mcp-host via REST API",
"main": "dist/main.js",
"engines": {
diff --git a/host-context-controller/src/__tests__/replaceWithConflictRetryOrder.test.ts b/host-context-controller/src/__tests__/replaceWithConflictRetryOrder.test.ts
index b6c64d8b3..db2551592 100644
--- a/host-context-controller/src/__tests__/replaceWithConflictRetryOrder.test.ts
+++ b/host-context-controller/src/__tests__/replaceWithConflictRetryOrder.test.ts
@@ -378,8 +378,15 @@ describe('replaceWithConflictRetry order and retry', () => {
})
it('WRITE-4: successful replace without kind increments {kind=unknown}', async () => {
- const body = { metadata: { name: 'svc', namespace: 'ns' } }
- const live = { metadata: { name: 'svc', namespace: 'ns', resourceVersion: '9' } }
+ const body: {
+ metadata?: { resourceVersion?: string; name?: string; namespace?: string }
+ kind?: string
+ } = {
+ metadata: { name: 'svc', namespace: 'ns' },
+ }
+ const live: typeof body = {
+ metadata: { name: 'svc', namespace: 'ns', resourceVersion: '9' },
+ }
const before = await readWritesTotal('unknown')
const log = vi.spyOn(console, 'log').mockImplementation(() => {})