diff --git a/src/Tests/Toolchain/ToolchainEnv.test.ts b/src/Tests/Toolchain/ToolchainEnv.test.ts index 6e7a05e3e..3476eea44 100644 --- a/src/Tests/Toolchain/ToolchainEnv.test.ts +++ b/src/Tests/Toolchain/ToolchainEnv.test.ts @@ -153,7 +153,7 @@ suite("Toolchain", function () { assert.fail(); }, () => { - assert.isTrue(true); + // pass } ); }); @@ -163,7 +163,7 @@ suite("Toolchain", function () { let env = new ToolchainEnv(compiler); env.prerequisites().then( () => { - assert.isTrue(true); + // pass }, () => { assert.fail(); @@ -180,7 +180,7 @@ suite("Toolchain", function () { assert.isAbove(availableToolchains.length, 0); env.install(availableToolchains[0]).then( () => { - assert.isTrue(true); + // pass }, () => { assert.fail(); @@ -198,7 +198,7 @@ suite("Toolchain", function () { assert.fail(); }, () => { - assert.isTrue(true); + // pass } ); }); @@ -211,7 +211,7 @@ suite("Toolchain", function () { assert.isAbove(installedToolchains.length, 0); env.uninstall(installedToolchains[0]).then( () => { - assert.isTrue(true); + // pass }, () => { assert.fail(); @@ -229,7 +229,7 @@ suite("Toolchain", function () { assert.fail(); }, () => { - assert.isTrue(true); + // pass } ); }); @@ -243,7 +243,7 @@ suite("Toolchain", function () { const modelCfg = "model.cfg"; env.run(modelCfg, installedToolchains[0]).then( () => { - assert.isTrue(true); + // pass }, () => { assert.fail(); @@ -261,7 +261,7 @@ suite("Toolchain", function () { assert.fail(); }, () => { - assert.isTrue(true); + // pass } ); }); @@ -277,7 +277,7 @@ suite("Toolchain", function () { assert.fail(); }, () => { - assert.isTrue(true); + // pass } ); }); @@ -290,7 +290,7 @@ suite("Toolchain", function () { assert.isAbove(invalidToolchain.length, 0); const model = "model.bin"; await env.infer(invalidToolchain[0], model).catch(() => { - assert.isTrue(true); + // pass }); }); }); @@ -302,7 +302,7 @@ suite("Toolchain", function () { assert.isAbove(invalidToolchain.length, 0); const model = "model.bin"; await env.profile(invalidToolchain[0], model).catch(() => { - assert.isTrue(true); + // pass }); }); }); @@ -314,7 +314,7 @@ suite("Toolchain", function () { assert.isAbove(invalidToolchain.length, 0); const model = "model.bin"; await env.getModelInfo(invalidToolchain[0], model, "test").catch(() => { - assert.isTrue(true); + // pass }); }); }); diff --git a/src/Tests/Toolchain/ToolchainProvider.test.ts b/src/Tests/Toolchain/ToolchainProvider.test.ts index 65b5e99a2..6f5f63126 100644 --- a/src/Tests/Toolchain/ToolchainProvider.test.ts +++ b/src/Tests/Toolchain/ToolchainProvider.test.ts @@ -227,7 +227,6 @@ suite("Toolchain", function () { const toolchains = toolchainEnv.listAvailable(types[0], 0, 1); assert.isAbove(toolchains.length, 0); provider._install(toolchainEnv, toolchains[0]); - assert.isTrue(true); }); test("requests _install with no installed toolchain", function () { const provider = new ToolchainProvider(); @@ -237,7 +236,6 @@ suite("Toolchain", function () { const toolchains = invalidToolchainEnv.listAvailable(types[0], 0, 1); assert.isAbove(toolchains.length, 0); provider._install(invalidToolchainEnv, toolchains[0]); - assert.isTrue(true); }); test("NEG: requests _install with multiple installed toolchains", function () { const provider = new ToolchainProvider(); @@ -262,7 +260,6 @@ suite("Toolchain", function () { const tnodes = NodeBuilder.createToolchainNodes(bnodes[1]); assert.isAbove(tnodes.length, 0); provider.uninstall(tnodes[0]); - assert.isTrue(true); }); test("NEG: requests uninstall with invalid toolchain node", function () { const provider = new ToolchainProvider(); @@ -291,7 +288,6 @@ suite("Toolchain", function () { assert.isAbove(toolchains.length, 0); DefaultToolchain.getInstance().set(toolchainEnv, toolchains[0]); provider._run(modelCfg); - assert.isTrue(true); }); test("NEG: requests run with uninitialized default toolchain", function () { const provider = new ToolchainProvider(); diff --git a/src/Tests/Utils/PipedSpawnSync.test.ts b/src/Tests/Utils/PipedSpawnSync.test.ts index a40cdbfb4..e0fa8b4d8 100644 --- a/src/Tests/Utils/PipedSpawnSync.test.ts +++ b/src/Tests/Utils/PipedSpawnSync.test.ts @@ -80,7 +80,6 @@ suite("Utils", function () { assert.fail("should not reach here"); } catch (err) { // success - assert.isTrue(true); } }); }); @@ -143,7 +142,6 @@ suite("Utils", function () { assert.fail("should not reach here"); } catch (err) { // success - assert.isTrue(true); } }); });