Skip to content

Commit ea1f3ba

Browse files
committed
fix app status asserts
1 parent 41907db commit ea1f3ba

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

ts/test/local/conductor.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ test("Local Conductor - get app info with app ws", async (t) => {
224224
const appWs = await conductor.connectAppWs(issued.token, port);
225225
const appInfo = await appWs.appInfo();
226226
assert(appInfo);
227-
t.deepEqual(appInfo.status, "running");
227+
t.deepEqual(appInfo.status, { type: "running" });
228228
await conductor.shutDown();
229229
await stopLocalServices(servicesProcess);
230230
await cleanAllConductors();
@@ -246,7 +246,7 @@ test("Local Conductor - get app info with app agent ws", async (t) => {
246246
.issueAppAuthenticationToken({ installed_app_id: app.installed_app_id });
247247
const appWs = await conductor.connectAppWs(issued.token, port);
248248
const appInfo = await appWs.appInfo();
249-
t.deepEqual(appInfo.status, "running");
249+
t.deepEqual(appInfo.status, { type: "running" });
250250
await conductor.shutDown();
251251
await stopLocalServices(servicesProcess);
252252
await cleanAllConductors();
@@ -290,7 +290,7 @@ test("Local Conductor - install app with deferred memproofs", async (t) => {
290290
let appInfo = await appWs.appInfo();
291291
t.deepEqual(
292292
appInfo.status,
293-
{ disabled: { reason: "never_started" } },
293+
{ type: "disabled", value: { reason: { type: "never_started" } } },
294294
"app status is never_started"
295295
);
296296

@@ -302,7 +302,7 @@ test("Local Conductor - install app with deferred memproofs", async (t) => {
302302
.enableApp({ installed_app_id: app.installed_app_id });
303303

304304
appInfo = await appWs.appInfo();
305-
t.equal(appInfo.status, "running", "app status is running");
305+
t.deepEqual(appInfo.status, { type: "running" }, "app status is running");
306306

307307
await conductor.shutDown();
308308
await stopLocalServices(servicesProcess);

ts/test/trycp/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ test("TryCP Server - App API - get app info", async (t) => {
305305

306306
const appInfo = await appWs.appInfo();
307307
assert(appInfo);
308-
t.deepEqual(appInfo.status, "running");
308+
t.deepEqual(appInfo.status, { type: "running" });
309309

310310
await conductor.disconnectAppInterface(port);
311311
await conductor.shutDown();

ts/test/trycp/conductor.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ test("TryCP Conductor - install app with deferred memproofs", async (t) => {
254254
assert(appInfo);
255255
t.deepEqual(
256256
appInfo.status,
257-
{ disabled: { reason: "never_started" } },
257+
{ type: "disabled", value: { reason: { type: "never_started" } } },
258258
"app status is never_started"
259259
);
260260

@@ -278,7 +278,7 @@ test("TryCP Conductor - install app with deferred memproofs", async (t) => {
278278

279279
appInfo = await appWs.appInfo();
280280
assert(appInfo);
281-
t.equal(appInfo.status, "running", "app status is running");
281+
t.deepEqual(appInfo.status, { type: "running" }, "app status is running");
282282

283283
await stopLocalServices(servicesProcess);
284284
await client.cleanUp();
@@ -676,7 +676,7 @@ test("TryCP Conductor - create and read an entry using the entry zome", async (t
676676
});
677677
t.deepEqual(
678678
enabledAppResponse.app.status,
679-
"running",
679+
{ type: "running" },
680680
"enabled app response matches 'running'"
681681
);
682682

@@ -812,15 +812,15 @@ test("TryCP Conductor - create and read an entry using the entry zome, 1 conduct
812812
});
813813
t.deepEqual(
814814
enabledAppResponse1.app.status,
815-
"running",
815+
{ type: "running" },
816816
"enabled app response 1 matches 'running'"
817817
);
818818
const enabledAppResponse2 = await conductor.adminWs().enableApp({
819819
installed_app_id: appId2,
820820
});
821821
t.deepEqual(
822822
enabledAppResponse2.app.status,
823-
"running",
823+
{ type: "running" },
824824
"enabled app response 2 matches 'running'"
825825
);
826826

0 commit comments

Comments
 (0)