Skip to content

Commit

Permalink
fix: use dry-run in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gerblesh committed Dec 25, 2024
1 parent 0f34e4c commit afc8cc7
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions drv/brew/brew.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ func (up BrewUpdater) New(config UpdaterInitConfiguration) (BrewUpdater, error)

uid, err := up.GetBrewUID()
if err != nil {
up.Config.Enabled = false
return up, err
}
up.BaseUser = uid
Expand Down
2 changes: 1 addition & 1 deletion drv/brew/brew_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

func InitBaseConfig() brew.BrewUpdater {
var initConfiguration = generic.UpdaterInitConfiguration{
DryRun: false,
DryRun: true,
Ci: false,
Verbose: false,
Environment: nil,
Expand Down
2 changes: 1 addition & 1 deletion drv/distrobox/distrobox_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

func InitBaseConfig() distrobox.DistroboxUpdater {
var initConfiguration = generic.UpdaterInitConfiguration{
DryRun: false,
DryRun: true,
Ci: false,
Verbose: false,
Environment: nil,
Expand Down
2 changes: 1 addition & 1 deletion drv/flatpak/flatpak_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

func InitBaseConfig() flatpak.FlatpakUpdater {
var initConfiguration = generic.UpdaterInitConfiguration{
DryRun: false,
DryRun: true,
Ci: false,
Verbose: false,
Environment: nil,
Expand Down
2 changes: 1 addition & 1 deletion drv/rpmostree/rpmostree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

func InitBaseConfig() rpmostree.RpmOstreeUpdater {
var initConfiguration = generic.UpdaterInitConfiguration{
DryRun: false,
DryRun: true,
Ci: false,
Verbose: false,
Environment: nil,
Expand Down
2 changes: 1 addition & 1 deletion drv/system/system_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

func InitBaseConfig() system.SystemUpdater {
var initConfiguration = generic.UpdaterInitConfiguration{
DryRun: false,
DryRun: true,
Ci: false,
Verbose: false,
Environment: nil,
Expand Down

0 comments on commit afc8cc7

Please sign in to comment.