@dxos/functions-testing 0.8.4-main.21d9917 → 0.8.4-main.52d7546f51

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/functions-testing",
3
- "version": "0.8.4-main.21d9917",
3
+ "version": "0.8.4-main.52d7546f51",
4
4
  "description": "Functions tests",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -37,17 +37,17 @@
37
37
  "src"
38
38
  ],
39
39
  "dependencies": {
40
- "@effect/platform": "0.93.6",
41
- "@dxos/client": "0.8.4-main.21d9917",
42
- "@dxos/async": "0.8.4-main.21d9917",
43
- "@dxos/config": "0.8.4-main.21d9917",
44
- "@dxos/functions": "0.8.4-main.21d9917",
45
- "@dxos/echo": "0.8.4-main.21d9917",
46
- "@dxos/functions-runtime-cloudflare": "0.8.4-main.21d9917",
47
- "@dxos/functions-runtime": "0.8.4-main.21d9917",
48
- "@dxos/invariant": "0.8.4-main.21d9917",
49
- "@dxos/log": "0.8.4-main.21d9917",
50
- "@dxos/protocols": "0.8.4-main.21d9917"
40
+ "@effect/platform": "0.94.4",
41
+ "@dxos/async": "0.8.4-main.52d7546f51",
42
+ "@dxos/client": "0.8.4-main.52d7546f51",
43
+ "@dxos/config": "0.8.4-main.52d7546f51",
44
+ "@dxos/echo": "0.8.4-main.52d7546f51",
45
+ "@dxos/functions": "0.8.4-main.52d7546f51",
46
+ "@dxos/functions-runtime": "0.8.4-main.52d7546f51",
47
+ "@dxos/functions-runtime-cloudflare": "0.8.4-main.52d7546f51",
48
+ "@dxos/log": "0.8.4-main.52d7546f51",
49
+ "@dxos/invariant": "0.8.4-main.52d7546f51",
50
+ "@dxos/protocols": "0.8.4-main.52d7546f51"
51
51
  },
52
52
  "publishConfig": {
53
53
  "access": "public"
@@ -86,7 +86,9 @@ describe.runIf(process.env.DX_TEST_TAGS?.includes('functions-e2e'))('CPU limit',
86
86
  }
87
87
 
88
88
  {
89
- trigger.input!.iterations = 100;
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.input!.iterations = 1_000_000_000;
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.input!.iterations = 100;
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
  });
@@ -15,7 +15,7 @@ export default defineFunction({
15
15
  inputSchema: Schema.Any,
16
16
  outputSchema: Schema.Any,
17
17
  handler: Effect.fn(function* ({ data }) {
18
- const results = yield* Database.Service.runQuery(Query.select(Filter.everything()));
18
+ const results = yield* Database.runQuery(Query.select(Filter.everything()));
19
19
  return { count: results.length };
20
20
  }),
21
21
  });