From 8009a94cb1136e316c277ab4bcc21dafdeb18881 Mon Sep 17 00:00:00 2001 From: Philipp Winter Date: Sat, 19 Oct 2024 11:58:19 -0500 Subject: [PATCH] Skip system setup when testing. --- internal/service/service.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/internal/service/service.go b/internal/service/service.go index 8743d43..07bfc6a 100644 --- a/internal/service/service.go +++ b/internal/service/service.go @@ -86,10 +86,13 @@ func checkSystemSafety(config *config.Config) (err error) { func setupSystem(config *config.Config) (err error) { defer errs.Wrap(&err, "failed to set up system") - if !config.Testing { - if err := system.SeedRandomness(); err != nil { - return err - } + // GitHub Actions won't allow us to set up the lo interface. + if config.Testing { + return nil + } + + if err := system.SeedRandomness(); err != nil { + return err } return system.SetupLo() }