Skip to content
This repository was archived by the owner on Jan 15, 2021. It is now read-only.

Commit 8f4f884

Browse files
committed
Merge pull request #436 from thaliproject/fix-running-tests
Fix running tests when `userConfig` isn't given.
2 parents dcd43fa + c0db81b commit 8f4f884

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/TestServer/TestFramework.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function TestFramework(testConfig, userConfig, _logger) {
3939
// of devices
4040
Object.keys(this.userConfig).forEach(function(platform) {
4141
// -1 indicates to inherit from testConfig (i.e. all available)
42-
if (self.userConfig[platform].numDevices != -1) {
42+
if (self.userConfig[platform].numDevices && self.userConfig[platform].numDevices !== -1) {
4343
self.requiredDevices[platform] = self.userConfig[platform].numDevices;
4444
}
4545
});

0 commit comments

Comments
 (0)