[fix] PR feedback
@@ -21,12 +21,11 @@ package uk.ac.manchester.tornado.unittests.common;
import org.junit.Before;
import uk.ac.manchester.tornado.api.TornadoDriver;
-import uk.ac.manchester.tornado.api.enums.TornadoDeviceType;
import uk.ac.manchester.tornado.api.runtime.TornadoRuntime;
public abstract class TornadoTestBase {
- protected static boolean deviceHashChanged = false;
+ protected static boolean wasDeviceInspected = false;
@Before
public void before() {
@@ -37,14 +36,14 @@ public abstract class TornadoTestBase {
}
}
- if (!deviceHashChanged) {
+ if (!wasDeviceInspected) {
int deviceIndex = getDeviceIndex();
if (deviceIndex != 0) {
// We swap the default device for the selected one
TornadoDriver driver = TornadoRuntime.getTornadoRuntime().getDriver(0);
driver.setDefaultDevice(deviceIndex);
}
- deviceHashChanged = true;
+ wasDeviceInspected = true;
}
}
