Skip to content

Commit 3f1cbde

Browse files
committed
- Shift test order for spm update as the return code is different
between toolchains above 5.9 and 5.9 + below. - Move to a spot where spm update is guranteed to return 0, after local dependency is fully set up.
1 parent bb37883 commit 3f1cbde

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

test/integration-tests/commands/dependency.test.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@ suite("Dependency Commmands Test Suite", function () {
4646
const result = await vscode.commands.executeCommand(Commands.RESOLVE_DEPENDENCIES);
4747
expect(result).to.be.true;
4848
});
49-
50-
test("Contract: spm update", async () => {
51-
const result = await vscode.commands.executeCommand(Commands.UPDATE_DEPENDENCIES);
52-
expect(result).to.be.true;
53-
});
5449
});
5550

5651
suite("Full Work Flow Test Suite", function () {
@@ -126,5 +121,17 @@ suite("Dependency Commmands Test Suite", function () {
126121
const result = await vscode.commands.executeCommand(Commands.UNEDIT_DEPENDENCY, item);
127122
expect(result).to.be.true;
128123
});
124+
125+
test("Contract: spm update", async () => {
126+
await useLocalDependencyTest();
127+
128+
// Contract: spm update
129+
let result = await vscode.commands.executeCommand(Commands.UPDATE_DEPENDENCIES);
130+
expect(result).to.be.true;
131+
132+
// Clean up
133+
result = await vscode.commands.executeCommand(Commands.UNEDIT_DEPENDENCY, item);
134+
expect(result).to.be.true;
135+
});
129136
});
130137
});

0 commit comments

Comments
 (0)