diff --git a/examples/experimental/test/property/candid_rpc/canister_methods/post_upgrade/test/generate_init_tests.ts b/examples/experimental/test/property/candid_rpc/canister_methods/post_upgrade/test/generate_init_tests.ts index b6c576d370..c47892e40e 100644 --- a/examples/experimental/test/property/candid_rpc/canister_methods/post_upgrade/test/generate_init_tests.ts +++ b/examples/experimental/test/property/candid_rpc/canister_methods/post_upgrade/test/generate_init_tests.ts @@ -17,7 +17,7 @@ export function generateTests( { name: `init method`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const initValues = await actor.getInitValues(); const isPostUpgradeCalled = diff --git a/examples/experimental/test/property/candid_rpc/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts b/examples/experimental/test/property/candid_rpc/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts index 7d9e9ddba4..79344d0cff 100644 --- a/examples/experimental/test/property/candid_rpc/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts +++ b/examples/experimental/test/property/candid_rpc/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts @@ -18,7 +18,7 @@ export function generateTests( { name: `post upgrade method`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const postUpgradeValues = await actor.getPostUpgradeValues(); diff --git a/examples/experimental/test/property/candid_rpc/canister_methods/pre_upgrade/test/test.ts b/examples/experimental/test/property/candid_rpc/canister_methods/pre_upgrade/test/test.ts index 11c82720cd..4b8001a4e6 100644 --- a/examples/experimental/test/property/candid_rpc/canister_methods/pre_upgrade/test/test.ts +++ b/examples/experimental/test/property/candid_rpc/canister_methods/pre_upgrade/test/test.ts @@ -124,7 +124,7 @@ function generateGetPreUpgradeExecutedCanisterMethod(): QueryMethod { { name: `pre upgrade was not called after first deploy`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor.getPreUpgradeExecuted(); return testEquality(result, []); @@ -135,7 +135,7 @@ function generateGetPreUpgradeExecutedCanisterMethod(): QueryMethod { { name: `pre upgrade was called after second deploy`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor.getPreUpgradeExecuted(); return testEquality(result, [true]); diff --git a/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/contains_key.ts b/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/contains_key.ts index b51178b4e8..825842f8fa 100644 --- a/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/contains_key.ts +++ b/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/contains_key.ts @@ -54,7 +54,7 @@ function generateTests( { name: `containsKey after first deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName]( keySampleAgentArgumentValue @@ -68,7 +68,7 @@ function generateTests( { name: `containsKey after second deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName]( keySampleAgentArgumentValue @@ -82,7 +82,7 @@ function generateTests( { name: `containsKey after third deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName]( keySampleAgentArgumentValue diff --git a/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/get.ts b/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/get.ts index 5f8352db63..97de9539c8 100644 --- a/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/get.ts +++ b/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/get.ts @@ -70,7 +70,7 @@ function generateTests( { name: `get after first deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName]( keySampleAgentArgumentValue @@ -86,7 +86,7 @@ function generateTests( { name: `get after second deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName]( keySampleAgentArgumentValue @@ -102,7 +102,7 @@ function generateTests( { name: `get after third deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName]( keySampleAgentArgumentValue diff --git a/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/insert.ts b/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/insert.ts index de593afbda..c712351bb6 100644 --- a/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/insert.ts +++ b/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/insert.ts @@ -65,7 +65,7 @@ function generateTests( { name: `insert after first deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName]( keySampleAgentArgumentValue, diff --git a/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/is_empty.ts b/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/is_empty.ts index 91bea2690a..d571f754fd 100644 --- a/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/is_empty.ts +++ b/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/is_empty.ts @@ -44,7 +44,7 @@ function generateTests(functionName: string): Test[][] { { name: `isEmpty after first deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName](); @@ -56,7 +56,7 @@ function generateTests(functionName: string): Test[][] { { name: `isEmpty after second deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName](); @@ -68,7 +68,7 @@ function generateTests(functionName: string): Test[][] { { name: `isEmpty after third deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName](); diff --git a/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/items.ts b/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/items.ts index d2d123801a..1252d51a51 100644 --- a/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/items.ts +++ b/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/items.ts @@ -54,7 +54,7 @@ function generateTests( { name: `items after first deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName](); @@ -71,7 +71,7 @@ function generateTests( { name: `items after second deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName](); @@ -88,7 +88,7 @@ function generateTests( { name: `items after third deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName](); diff --git a/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/keys.ts b/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/keys.ts index b64008bda4..b2c942fa51 100644 --- a/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/keys.ts +++ b/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/keys.ts @@ -58,7 +58,7 @@ function generateTests( { name: `keys after first deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName](); @@ -77,7 +77,7 @@ function generateTests( { name: `keys after second deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName](); @@ -96,7 +96,7 @@ function generateTests( { name: `keys after third deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName](); diff --git a/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/len.ts b/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/len.ts index c6046ee4bb..602b28602f 100644 --- a/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/len.ts +++ b/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/len.ts @@ -45,7 +45,7 @@ function generateTests(functionName: string): Test[][] { { name: `len after first deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName](); @@ -57,7 +57,7 @@ function generateTests(functionName: string): Test[][] { { name: `len after second deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName](); @@ -69,7 +69,7 @@ function generateTests(functionName: string): Test[][] { { name: `len after third deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName](); diff --git a/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/remove.ts b/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/remove.ts index 2101a2194f..94fc4239ce 100644 --- a/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/remove.ts +++ b/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/remove.ts @@ -71,7 +71,7 @@ function generateTests( { name: `remove after second deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName]( keySampleAgentArgumentValue diff --git a/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/values.ts b/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/values.ts index 05700543f1..6baac1b758 100644 --- a/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/values.ts +++ b/examples/experimental/test/property/candid_rpc/stable_b_tree_map/test/values.ts @@ -61,7 +61,7 @@ function generateTests( { name: `values after first deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName](); @@ -80,7 +80,7 @@ function generateTests( { name: `values after second deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName](); @@ -99,7 +99,7 @@ function generateTests( { name: `values after third deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName](); diff --git a/examples/stable/test/property/candid_rpc/canister_methods/post_upgrade/test/generate_init_tests.ts b/examples/stable/test/property/candid_rpc/canister_methods/post_upgrade/test/generate_init_tests.ts index b6c576d370..c47892e40e 100644 --- a/examples/stable/test/property/candid_rpc/canister_methods/post_upgrade/test/generate_init_tests.ts +++ b/examples/stable/test/property/candid_rpc/canister_methods/post_upgrade/test/generate_init_tests.ts @@ -17,7 +17,7 @@ export function generateTests( { name: `init method`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const initValues = await actor.getInitValues(); const isPostUpgradeCalled = diff --git a/examples/stable/test/property/candid_rpc/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts b/examples/stable/test/property/candid_rpc/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts index 7d9e9ddba4..79344d0cff 100644 --- a/examples/stable/test/property/candid_rpc/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts +++ b/examples/stable/test/property/candid_rpc/canister_methods/post_upgrade/test/generate_post_upgrade_tests.ts @@ -18,7 +18,7 @@ export function generateTests( { name: `post upgrade method`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const postUpgradeValues = await actor.getPostUpgradeValues(); diff --git a/examples/stable/test/property/candid_rpc/canister_methods/pre_upgrade/test/test.ts b/examples/stable/test/property/candid_rpc/canister_methods/pre_upgrade/test/test.ts index 34b901f0cc..85b13b9c01 100644 --- a/examples/stable/test/property/candid_rpc/canister_methods/pre_upgrade/test/test.ts +++ b/examples/stable/test/property/candid_rpc/canister_methods/pre_upgrade/test/test.ts @@ -118,7 +118,7 @@ function generateGetPreUpgradeExecutedCanisterMethod(): QueryMethod { { name: `pre upgrade was not called after first deploy`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor.getPreUpgradeExecuted(); return testEquality(result, []); @@ -129,7 +129,7 @@ function generateGetPreUpgradeExecutedCanisterMethod(): QueryMethod { { name: `pre upgrade was called after second deploy`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor.getPreUpgradeExecuted(); return testEquality(result, [true]); diff --git a/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/contains_key.ts b/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/contains_key.ts index 4d221fc4c0..350ef0807a 100644 --- a/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/contains_key.ts +++ b/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/contains_key.ts @@ -79,7 +79,7 @@ function generateTests( { name: `containsKey after first deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName]( keySampleAgentArgumentValue @@ -93,7 +93,7 @@ function generateTests( { name: `containsKey after second deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName]( keySampleAgentArgumentValue @@ -107,7 +107,7 @@ function generateTests( { name: `containsKey after third deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName]( keySampleAgentArgumentValue diff --git a/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/get.ts b/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/get.ts index b7613e01a2..47d621a627 100644 --- a/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/get.ts +++ b/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/get.ts @@ -79,7 +79,7 @@ function generateTests( { name: `get after first deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName]( keySampleAgentArgumentValue @@ -95,7 +95,7 @@ function generateTests( { name: `get after second deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName]( keySampleAgentArgumentValue @@ -111,7 +111,7 @@ function generateTests( { name: `get after third deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName]( keySampleAgentArgumentValue diff --git a/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/insert.ts b/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/insert.ts index 8adf201b01..5f6a1f85b0 100644 --- a/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/insert.ts +++ b/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/insert.ts @@ -70,7 +70,7 @@ function generateTests( { name: `insert after first deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName]( keySampleAgentArgumentValue, diff --git a/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/is_empty.ts b/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/is_empty.ts index ecd8b33e32..6fce5bb0ce 100644 --- a/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/is_empty.ts +++ b/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/is_empty.ts @@ -45,7 +45,7 @@ function generateTests(functionName: string): Test[][] { { name: `isEmpty after first deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName](); @@ -57,7 +57,7 @@ function generateTests(functionName: string): Test[][] { { name: `isEmpty after second deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName](); @@ -69,7 +69,7 @@ function generateTests(functionName: string): Test[][] { { name: `isEmpty after third deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName](); diff --git a/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/items.ts b/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/items.ts index 02d8d82f9a..60710e7e7c 100644 --- a/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/items.ts +++ b/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/items.ts @@ -55,7 +55,7 @@ function generateTests( { name: `items after first deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName](); @@ -72,7 +72,7 @@ function generateTests( { name: `items after second deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName](); @@ -89,7 +89,7 @@ function generateTests( { name: `items after third deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName](); diff --git a/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/keys.ts b/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/keys.ts index f3a09dc853..8d376e16ca 100644 --- a/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/keys.ts +++ b/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/keys.ts @@ -67,7 +67,7 @@ function generateTests( { name: `keys after first deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName](); @@ -86,7 +86,7 @@ function generateTests( { name: `keys after second deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName](); @@ -105,7 +105,7 @@ function generateTests( { name: `keys after third deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName](); diff --git a/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/len.ts b/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/len.ts index 4deaa182b0..f2cb701e4e 100644 --- a/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/len.ts +++ b/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/len.ts @@ -47,7 +47,7 @@ function generateTests(functionName: string): Test[][] { { name: `len after first deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName](); @@ -59,7 +59,7 @@ function generateTests(functionName: string): Test[][] { { name: `len after second deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName](); @@ -71,7 +71,7 @@ function generateTests(functionName: string): Test[][] { { name: `len after third deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName](); diff --git a/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/remove.ts b/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/remove.ts index 78958f8cba..cfc15e5beb 100644 --- a/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/remove.ts +++ b/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/remove.ts @@ -79,7 +79,7 @@ function generateTests( { name: `remove after second deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName]( keySampleAgentArgumentValue diff --git a/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/values.ts b/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/values.ts index ebdf3d3ab5..2784a878d4 100644 --- a/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/values.ts +++ b/examples/stable/test/property/candid_rpc/stable_b_tree_map/test/values.ts @@ -70,7 +70,7 @@ function generateTests( { name: `values after first deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName](); @@ -89,7 +89,7 @@ function generateTests( { name: `values after second deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName](); @@ -108,7 +108,7 @@ function generateTests( { name: `values after third deploy ${functionName}`, test: async (): Promise => { - const actor = getActor(__dirname); + const actor = await getActor(__dirname); const result = await actor[functionName]();