Skip to content

Commit

Permalink
and more
Browse files Browse the repository at this point in the history
  • Loading branch information
dbolotin committed Sep 7, 2024
1 parent 7d5ec84 commit 8c2375d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/src/wf.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import { blockSpec as myBlockSpec } from 'this-block';
import { InferBlockState, fromPlRef, wrapOutputs } from '@milaboratory/sdk-ui';
import * as tp from 'node:timers/promises';

blockTest('empty imputs', { timeout: 10000 }, async ({ rawPrj: project, ml, helpers, expect }) => {
blockTest('empty imputs', { timeout: 30000 }, async ({ rawPrj: project, ml, helpers, expect }) => {
const blockId = await project.addBlock('Block', myBlockSpec);
const stableState = (await awaitStableState(
project.getBlockState(blockId),
5000
25000
)) as InferBlockState<typeof platforma>;
expect(stableState.outputs).toMatchObject({ inputOptions: { ok: true, value: [] } });
const presets = wrapOutputs(stableState.outputs).presets;
Expand All @@ -24,15 +24,15 @@ blockTest('empty imputs', { timeout: 10000 }, async ({ rawPrj: project, ml, help

blockTest(
'preset content',
{ timeout: 10000 },
{ timeout: 30000 },
async ({ rawPrj: project, ml, helpers, expect }) => {
const blockId = await project.addBlock('Block', myBlockSpec);
await project.setBlockArgs(blockId, {
preset: 'milab-human-dna-xcr-7genes-multiplex'
} satisfies BlockArgs);
const stableState = (await awaitStableState(
project.getBlockState(blockId),
10000
250000
)) as InferBlockState<typeof platforma>;
const preset = wrapOutputs(stableState.outputs).preset;
expect(preset).toBeTypeOf('object');
Expand Down Expand Up @@ -135,7 +135,7 @@ blockTest(
await project.runBlock(clonotypingBlockId);
const clonotypingStableState3 = (await helpers.awaitBlockDoneAndGetStableBlockState(
clonotypingBlockId,
20000
25000
)) as InferBlockState<typeof platforma>;
const outputs3 = wrapOutputs<BlockOutputs>(clonotypingStableState3.outputs);

Expand Down

0 comments on commit 8c2375d

Please sign in to comment.