Skip to content

Commit

Permalink
Fixed remaining races
Browse files Browse the repository at this point in the history
  • Loading branch information
robmoffat committed Oct 26, 2023
1 parent 1cf91c8 commit 3f07d66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const constants = {
Fdc3Timeout: 500, // The amount of time to wait for the FDC3Ready event during initialisation
TestTimeout: 15000, // Tests that take longer than this (in milliseconds) will fail
WaitTime: 3000, // The amount of time to wait for mock apps to finish processing
WindowCloseWaitTime: 750, // The amount of time to allow for clean-up of closed windows
WindowCloseWaitTime: 1500, // The amount of time to allow for clean-up of closed windows
NoListenerTimeout: 120000, // the amount of time to allow for a DA to timeout waiting on a context or intent listener
// FDC3 does not define this timeout so this should be extended if the DA uses a longer timeout
ControlChannel: "app-control", //app channel used for passing messages between mock apps and tests
Expand Down
3 changes: 2 additions & 1 deletion src/test/v2.0/advanced/fdc3.findInstances.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assert, expect } from "chai";
import { APIDocumentation2_0 } from "../../v2.0/apiDocuments-2.0";
import { failOnTimeout, wrapPromise } from "../../../utils";
import { failOnTimeout, wait, wrapPromise } from "../../../utils";
import { closeMockAppWindow } from "../fdc3-2_0-utils";
import { IntentUtilityContext } from "../../../context-types";
import { MetadataFdc3Api } from "../support/metadata-support-2.0";
Expand All @@ -14,6 +14,7 @@ export default () =>
describe("fdc3.findInstances", () => {
after(async function after() {
await closeMockAppWindow(this.currentTest.title);
await wait(5000);
});

const findInstances = "(2.0-FindInstances) valid appID when opening multiple instances of the same app";
Expand Down

0 comments on commit 3f07d66

Please sign in to comment.