summaryrefslogtreecommitdiff
path: root/tests/lib/lib.ps1
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2023-09-29 22:02:48 +0300
committerK900 <me@0upti.me>2023-09-29 22:17:11 +0300
commitc9f4d0bbca055b5fb4bd8394397d0ffa2cd6efe1 (patch)
tree0922657f71d535631fa219d89c61d9a10caf25d9 /tests/lib/lib.ps1
parentd03144f1b642bb1cc93240d8c75aeb35d67084c6 (diff)
fix: update channels when installing distro under test
Diffstat (limited to 'tests/lib/lib.ps1')
-rw-r--r--tests/lib/lib.ps14
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib/lib.ps1 b/tests/lib/lib.ps1
index c9e9267..006eefe 100644
--- a/tests/lib/lib.ps1
+++ b/tests/lib/lib.ps1
@@ -88,6 +88,8 @@ class DockerDistro : Distro {
if ($LASTEXITCODE -ne 0) {
throw "Failed to launch container"
}
+
+ $this.Launch("sudo nix-channel --update")
}
[Array]Launch([string]$command) {
@@ -132,6 +134,8 @@ class WslDistro : Distro {
throw "Failed to import distro"
}
& wsl.exe --list | Should -Contain $this.id
+
+ $this.Launch("sudo nix-channel --update")
}
[Array]Launch([string]$command) {