Skip to content

Commit

Permalink
chore: always return new TestPlatform
Browse files Browse the repository at this point in the history
Signed-off-by: Hung-Han (Henry) Chen <[email protected]>
  • Loading branch information
chenhunghan committed Sep 2, 2024
1 parent 4e98d16 commit c3bc748
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion integration-test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class TestPlatform {
}
}

export const testPlatformFactory = async (username: string, password: string) => {
export const testPlatformFactory = async (username: string, password: string): TestPlatform => {

Check failure on line 22 in integration-test/utils.ts

View workflow job for this annotation

GitHub Actions / test (20)

The return type of an async function or method must be the global Promise<T> type. Did you mean to write 'Promise<TestPlatform>'?
const client = new ResourceOwnerPassword({
client: {
id: config.keycloakClientId,
Expand All @@ -45,6 +45,8 @@ export const testPlatformFactory = async (username: string, password: string) =>
} catch (error) {
console.error(error);
}

return new TestPlatform("");
};

export const rng = () => String(Math.ceil(Math.random() * 1000000000));

0 comments on commit c3bc748

Please sign in to comment.