Skip to content
This repository was archived by the owner on Dec 9, 2023. It is now read-only.

Commit d15ed20

Browse files
committed
change pause duration and add types to ensure passing tests
1 parent 9e4a9b2 commit d15ed20

File tree

5 files changed

+618
-615
lines changed

5 files changed

+618
-615
lines changed

src/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import sensemaker_community_activator from './sensemaker_dna/sensemaker/communit
44
import sensemaker_config from './sensemaker_dna/sensemaker/sm_config';
55
import applet_config from './sensemaker_dna/sensemaker/applet_config';
66
sensemaker_dimension();
7-
// sensemaker_config();
8-
// sensemaker_community_activator();
9-
// applet_config();
7+
sensemaker_config();
8+
sensemaker_community_activator();
9+
applet_config();
1010

src/sensemaker_dna/sensemaker/applet_config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import pkg from "tape-promise/tape";
77
import { setUpAliceandBob } from "./neighbourhood";
88
const { test } = pkg;
99

10-
let app_entry_def = { id: 0, zome_id: 0, visibility: { Public: null } };
10+
let app_entry_def: AppEntryDef = { entry_index: 0, zome_index: 0, visibility: { Public: null } };
1111
export default () =>
1212
test("test Sensemaker Configuration", async (t) => {
1313
await runScenario(async (scenario) => {

src/sensemaker_dna/sensemaker/community_activator.ts

+7-5
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ export default () => test("test CA progenitor pattern", async (t) => {
3131
});
3232
}
3333

34+
const pauseDuration = 1000;
35+
3436
await scenario.shareAllAgents();
35-
await pause(500)
37+
await pause(pauseDuration)
3638

3739
// create an entry type in the provider DNA
3840
const createPost = {
@@ -45,7 +47,7 @@ export default () => test("test CA progenitor pattern", async (t) => {
4547
createPost,
4648
);
4749

48-
await pause(500);
50+
await pause(pauseDuration);
4951

5052
const readPostOutput: Record = await callZomeBob(
5153
"test_provider",
@@ -74,7 +76,7 @@ export default () => test("test CA progenitor pattern", async (t) => {
7476
createDimension,
7577
true
7678
)
77-
79+
7880
// Bob creates a dimension but fails
7981
try {
8082
await callZomeBob(
@@ -109,7 +111,7 @@ export default () => test("test CA progenitor pattern", async (t) => {
109111
);
110112

111113
// Wait for the created entry to be propagated to the other node.
112-
await pause(100);
114+
await pause(pauseDuration);
113115

114116
// Bob creates a resource type but fails
115117
try {
@@ -130,7 +132,7 @@ export default () => test("test CA progenitor pattern", async (t) => {
130132
}
131133

132134
// Wait for the created entry to be propagated to the other node.
133-
await pause(100);
135+
await pause(pauseDuration);
134136

135137
// Alice creates a method
136138
const totalLikenessMethod = {

0 commit comments

Comments
 (0)