Skip to content

Commit

Permalink
Skip system setup when testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
NullHypothesis committed Oct 19, 2024
1 parent ed8ce3d commit 8009a94
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions internal/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down

0 comments on commit 8009a94

Please sign in to comment.