Skip to content

Commit

Permalink
fix merge issue
Browse files Browse the repository at this point in the history
  • Loading branch information
parvit committed Sep 16, 2024
1 parent 051c569 commit d049503
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 568 deletions.
195 changes: 0 additions & 195 deletions logger/logger_darwin_test.go

This file was deleted.

4 changes: 2 additions & 2 deletions shared/configuration/params_validation.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package configuration

import (
"github.com/parvit/qpep/shared/errors"
"github.com/parvit/qpep/shared/logger"
"github.com/Project-Faster/qpep/shared/errors"
"github.com/Project-Faster/qpep/shared/logger"
"net"
"sort"
"strconv"
Expand Down
2 changes: 1 addition & 1 deletion shared/configuration/params_validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package configuration

import (
"fmt"
"github.com/parvit/qpep/shared/errors"
"github.com/Project-Faster/qpep/shared/errors"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
"math/rand"
Expand Down
5 changes: 1 addition & 4 deletions shared/configuration/qpep_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ package configuration
import (
"errors"
"fmt"
"github.com/parvit/qpep/shared/logger"
"github.com/Project-Faster/qpep/shared/logger"
"gopkg.in/yaml.v3"
"io"
"os"
Expand Down Expand Up @@ -245,9 +245,6 @@ func WriteConfigurationOverrideFile(override QPepConfigType) {
}
}()

if len(values) == 0 {
return
}
data, err := yaml.Marshal(override)
if err != nil {
logger.Error("Could not read expected configuration file: %v", err)
Expand Down
11 changes: 6 additions & 5 deletions shared/configuration/qpep_config_patch_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//go:build !arm64

package shared
package configuration

import (
"errors"
Expand Down Expand Up @@ -79,7 +79,7 @@ func (s *QPepConfigSuite) TestWriteConfigurationOverrideFile_PanicError() {
})
defer guard.Unpatch()

WriteConfigurationOverrideFile(nil)
WriteConfigurationOverrideFile(QPepConfigType{})
}

func (s *QPepConfigSuite) TestWriteConfigurationOverrideFile_MarshalError() {
Expand All @@ -92,9 +92,10 @@ func (s *QPepConfigSuite) TestWriteConfigurationOverrideFile_MarshalError() {
})
defer guard.Unpatch()

WriteConfigurationOverrideFile(map[string]string{
"test": "10",
})
config := QPepConfigType{}
config.Merge(&DefaultConfig)

WriteConfigurationOverrideFile(config)
_, err := os.Stat(expectUserFile)
assert.Nil(s.T(), err)
}
Loading

0 comments on commit d049503

Please sign in to comment.