Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit d273fd9

Browse files
authored
Merge pull request #1568 from microsoft/dev/bemcmorr/remove-azureiothub
Remove deprecated AzureIoTHub library from tests
2 parents 494d5e0 + feed351 commit d273fd9

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

test/librarymanager.test.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@ suite("Arduino: Library Manager.", () => {
7171
this.timeout(3 * 60 * 1000);
7272
try {
7373
// Library Manager: Install extenal libarary.
74-
ArduinoContext.arduinoApp.installLibrary("AzureIoTHub", "1.0.35", true).then((result) => {
74+
ArduinoContext.arduinoApp.installLibrary("FastLED", "3.5.0", true).then((result) => {
7575
// check if the installation succeeds or not
7676
const arduinoSettings = ArduinoContext.arduinoApp.settings;
77-
const libPath = Path.join(arduinoSettings.sketchbookPath, "libraries", "AzureIoTHub");
77+
const libPath = Path.join(arduinoSettings.sketchbookPath, "libraries", "FastLED");
7878

7979
if (util.directoryExistsSync(libPath)) {
8080
done();
8181
} else {
82-
done(new Error("AzureIoTHub library install failure, can't find library path: " + libPath));
82+
done(new Error("FastLED library install failure, can't find library path: " + libPath));
8383
}
8484
});
8585

@@ -94,10 +94,10 @@ suite("Arduino: Library Manager.", () => {
9494
try {
9595
// Library Manager: remove extenal libarary.
9696
const arduinoSettings = ArduinoContext.arduinoApp.settings;
97-
const libPath = Path.join(arduinoSettings.sketchbookPath, "libraries", "AzureIoTHub");
97+
const libPath = Path.join(arduinoSettings.sketchbookPath, "libraries", "FastLED");
9898

9999
if (util.directoryExistsSync(libPath)) {
100-
ArduinoContext.arduinoApp.uninstallLibrary("AzureIoTHub", libPath);
100+
ArduinoContext.arduinoApp.uninstallLibrary("FastLED", libPath);
101101
assert.equal(util.directoryExistsSync(libPath), false,
102102
"Library path still exist after calling uninstall library,remove the library failure");
103103
}

test/programmermanager.test.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ suite("Arduino: Programmer Manager.", () => {
6868
assert.equal(programmerManager.currentDisplayName, "arduino:jtag3isp");
6969
});
7070

71-
test("changing arduino.ino value should change programmer", (done) => {
71+
test("changing arduino.ino value should change programmer", function(done) {
72+
this.timeout(3 * 60 * 1000);
7273
DeviceContext.getInstance().programmer = programmers[0].name;
7374
setTimeout(() => {
7475
assert.equal(programmerManager.currentProgrammer, programmers[0].key);

0 commit comments

Comments
 (0)