From d4538034b7fba772a5f87c2efa66dbbd76760142 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 2 Mar 2022 23:08:49 +0100 Subject: [PATCH] nix profile test: Restart daemon Fixes nix-daemon: src/libstore/sqlite.cc:97: nix::SQLiteStmt::Use::Use(nix::SQLiteStmt&): Assertion `stmt.stmt' failed. which happens because the daemon doesn't properly handle the case where ca-derivations isn't enabled at daemon startup. --- tests/nix-profile.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/nix-profile.sh b/tests/nix-profile.sh index be80e089a..a7a4d4fa2 100644 --- a/tests/nix-profile.sh +++ b/tests/nix-profile.sh @@ -4,6 +4,7 @@ clearStore clearProfiles enableFeatures "ca-derivations ca-references" +restartDaemon # Make a flake. flake1Dir=$TEST_ROOT/flake1