From c9f4d0bbca055b5fb4bd8394397d0ffa2cd6efe1 Mon Sep 17 00:00:00 2001 From: K900 Date: Fri, 29 Sep 2023 22:02:48 +0300 Subject: fix: update channels when installing distro under test --- tests/lib/lib.ps1 | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- cgit v1.2.3