diff options
| author | K900 <me@0upti.me> | 2023-09-29 22:02:48 +0300 |
|---|---|---|
| committer | K900 <me@0upti.me> | 2023-09-29 22:17:11 +0300 |
| commit | c9f4d0bbca055b5fb4bd8394397d0ffa2cd6efe1 (patch) | |
| tree | 0922657f71d535631fa219d89c61d9a10caf25d9 | |
| parent | d03144f1b642bb1cc93240d8c75aeb35d67084c6 (diff) | |
fix: update channels when installing distro under test
| -rw-r--r-- | tests/lib/lib.ps1 | 4 |
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) { |
