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

Remove deprecated AzureIoTHub library from tests #1568

Merged
merged 3 commits into from
Jan 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions test/librarymanager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ suite("Arduino: Library Manager.", () => {
this.timeout(3 * 60 * 1000);
try {
// Library Manager: Install extenal libarary.
ArduinoContext.arduinoApp.installLibrary("AzureIoTHub", "1.0.35", true).then((result) => {
ArduinoContext.arduinoApp.installLibrary("FastLED", "3.5.0", true).then((result) => {
// check if the installation succeeds or not
const arduinoSettings = ArduinoContext.arduinoApp.settings;
const libPath = Path.join(arduinoSettings.sketchbookPath, "libraries", "AzureIoTHub");
const libPath = Path.join(arduinoSettings.sketchbookPath, "libraries", "FastLED");

if (util.directoryExistsSync(libPath)) {
done();
} else {
done(new Error("AzureIoTHub library install failure, can't find library path: " + libPath));
done(new Error("FastLED library install failure, can't find library path: " + libPath));
}
});

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

if (util.directoryExistsSync(libPath)) {
ArduinoContext.arduinoApp.uninstallLibrary("AzureIoTHub", libPath);
ArduinoContext.arduinoApp.uninstallLibrary("FastLED", libPath);
assert.equal(util.directoryExistsSync(libPath), false,
"Library path still exist after calling uninstall library,remove the library failure");
}
Expand Down
3 changes: 2 additions & 1 deletion test/programmermanager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ suite("Arduino: Programmer Manager.", () => {
assert.equal(programmerManager.currentDisplayName, "arduino:jtag3isp");
});

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