Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transport-test: add case for multi devices #14335

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

mroz22
Copy link
Contributor

@mroz22 mroz22 commented Sep 13, 2024

@mroz22 mroz22 force-pushed the transport-multi-devices branch 6 times, most recently from f164f96 to 1cb3186 Compare September 17, 2024 13:35
@mroz22 mroz22 changed the title [wip]: transport-test: add case for multi devices transport-test: add case for multi devices Sep 17, 2024
@mroz22 mroz22 force-pushed the transport-multi-devices branch 2 times, most recently from 30473de to fa28d0b Compare September 18, 2024 15:21
@mroz22 mroz22 force-pushed the transport-multi-devices branch from fa28d0b to 31a99f3 Compare September 19, 2024 09:08
@mroz22 mroz22 marked this pull request as ready for review September 19, 2024 09:10
this.logger.log(
`${env.USE_HW ? '[MANUAL ACTION REQUIRED] ' : ''} waiting for ${expected} device to be connected`,
);

return scheduleAction(
async () => {
const devices = (await webusb.getDevices()).filter(d => d.productName === 'TREZOR');
if (devices.length === expected) {
if (devices.length >= expected) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check on this

@@ -26,6 +26,8 @@ class Controller extends TrezorUserEnvLinkClass {
private logger: Console;
private nodeBridge: TrezordNode | undefined = undefined;

private expectedNumOfDevices = 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this should be reset somewhere, when stopEmu is not called it will be incorrect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants