Skip to content

Commit c713b14

Browse files
authored
Fix getting device following enumeration when RealHardwarePort is not set (#245)
1 parent a6a6c00 commit c713b14

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

source/TestAdapter/Executor.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,11 +274,8 @@ private async Task<List<TestResult>> RunTestOnHardwareAsync(List<TestCase> tests
274274

275275
retryCount = 0;
276276

277-
if (serialDebugClient.NanoFrameworkDevices.Count > 1)
278-
{
279-
// grab the 1st device available
280-
device = serialDebugClient.NanoFrameworkDevices[0];
281-
}
277+
// grab the 1st device available
278+
device = serialDebugClient.NanoFrameworkDevices[0];
282279

283280
executeTests:
284281

0 commit comments

Comments
 (0)