@dxos/functions-testing 0.8.4-main.937b3ca → 0.8.4-main.9735255
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -11
- package/src/cpu-limit.test.ts +9 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/functions-testing",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.9735255",
|
|
4
4
|
"description": "Functions tests",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -38,16 +38,16 @@
|
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@effect/platform": "0.93.6",
|
|
41
|
-
"@dxos/async": "0.8.4-main.
|
|
42
|
-
"@dxos/client": "0.8.4-main.
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/functions": "0.8.4-main.
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/functions
|
|
48
|
-
"@dxos/log": "0.8.4-main.
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/
|
|
41
|
+
"@dxos/async": "0.8.4-main.9735255",
|
|
42
|
+
"@dxos/client": "0.8.4-main.9735255",
|
|
43
|
+
"@dxos/echo": "0.8.4-main.9735255",
|
|
44
|
+
"@dxos/functions-runtime": "0.8.4-main.9735255",
|
|
45
|
+
"@dxos/config": "0.8.4-main.9735255",
|
|
46
|
+
"@dxos/functions-runtime-cloudflare": "0.8.4-main.9735255",
|
|
47
|
+
"@dxos/functions": "0.8.4-main.9735255",
|
|
48
|
+
"@dxos/log": "0.8.4-main.9735255",
|
|
49
|
+
"@dxos/invariant": "0.8.4-main.9735255",
|
|
50
|
+
"@dxos/protocols": "0.8.4-main.9735255"
|
|
51
51
|
},
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
package/src/cpu-limit.test.ts
CHANGED
|
@@ -86,7 +86,9 @@ describe.runIf(process.env.DX_TEST_TAGS?.includes('functions-e2e'))('CPU limit',
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
{
|
|
89
|
-
trigger
|
|
89
|
+
Obj.change(trigger, (t) => {
|
|
90
|
+
t.input!.iterations = 100;
|
|
91
|
+
});
|
|
90
92
|
await sync(space);
|
|
91
93
|
const result = await functionsServiceClient.forceRunCronTrigger(space.id, trigger.id);
|
|
92
94
|
console.log(result);
|
|
@@ -132,11 +134,15 @@ describe.runIf(process.env.DX_TEST_TAGS?.includes('functions-e2e'))('CPU limit',
|
|
|
132
134
|
await sync(space);
|
|
133
135
|
await observeInvocations(space, 5);
|
|
134
136
|
|
|
135
|
-
trigger
|
|
137
|
+
Obj.change(trigger, (t) => {
|
|
138
|
+
t.input!.iterations = 1_000_000_000;
|
|
139
|
+
});
|
|
136
140
|
await sync(space);
|
|
137
141
|
await observeInvocations(space, 10);
|
|
138
142
|
|
|
139
|
-
trigger
|
|
143
|
+
Obj.change(trigger, (t) => {
|
|
144
|
+
t.input!.iterations = 100;
|
|
145
|
+
});
|
|
140
146
|
await sync(space);
|
|
141
147
|
await observeInvocations(space, 1_000);
|
|
142
148
|
});
|