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

Commit

Permalink
change pause duration and add types to ensure passing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
weswalla committed Jan 18, 2023
1 parent 9e4a9b2 commit d15ed20
Show file tree
Hide file tree
Showing 5 changed files with 618 additions and 615 deletions.
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import sensemaker_community_activator from './sensemaker_dna/sensemaker/communit
import sensemaker_config from './sensemaker_dna/sensemaker/sm_config';
import applet_config from './sensemaker_dna/sensemaker/applet_config';
sensemaker_dimension();
// sensemaker_config();
// sensemaker_community_activator();
// applet_config();
sensemaker_config();
sensemaker_community_activator();
applet_config();

2 changes: 1 addition & 1 deletion src/sensemaker_dna/sensemaker/applet_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import pkg from "tape-promise/tape";
import { setUpAliceandBob } from "./neighbourhood";
const { test } = pkg;

let app_entry_def = { id: 0, zome_id: 0, visibility: { Public: null } };
let app_entry_def: AppEntryDef = { entry_index: 0, zome_index: 0, visibility: { Public: null } };
export default () =>
test("test Sensemaker Configuration", async (t) => {
await runScenario(async (scenario) => {
Expand Down
12 changes: 7 additions & 5 deletions src/sensemaker_dna/sensemaker/community_activator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ export default () => test("test CA progenitor pattern", async (t) => {
});
}

const pauseDuration = 1000;

await scenario.shareAllAgents();
await pause(500)
await pause(pauseDuration)

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

await pause(500);
await pause(pauseDuration);

const readPostOutput: Record = await callZomeBob(
"test_provider",
Expand Down Expand Up @@ -74,7 +76,7 @@ export default () => test("test CA progenitor pattern", async (t) => {
createDimension,
true
)

// Bob creates a dimension but fails
try {
await callZomeBob(
Expand Down Expand Up @@ -109,7 +111,7 @@ export default () => test("test CA progenitor pattern", async (t) => {
);

// Wait for the created entry to be propagated to the other node.
await pause(100);
await pause(pauseDuration);

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

// Wait for the created entry to be propagated to the other node.
await pause(100);
await pause(pauseDuration);

// Alice creates a method
const totalLikenessMethod = {
Expand Down
Loading

0 comments on commit d15ed20

Please sign in to comment.