diff --git a/Makefile b/Makefile index 5c79baf..cada2a2 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ export GOPATH ?= $(shell $(GO) env GOPATH) export GOBIN ?= $(GOPATH)/bin # Setup go-make version to use desired build and config scripts. -GOMAKE_DEP ?= github.com/tkrop/go-make@v0.0.103 +GOMAKE_DEP ?= github.com/tkrop/go-make@v0.0.104 INSTALL_FLAGS ?= -mod=readonly -buildvcs=auto # Request targets from go-make targets target. TARGETS := $(shell command -v $(GOBIN)/go-make >/dev/null || \ diff --git a/config/config_test.go b/config/config_test.go index af775cf..6b4b372 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -64,9 +64,9 @@ var testConfigParams = map[string]testConfigParam{ r.SetDefault("viper.panic.load", true) }, expect: test.Panic(config.NewErrConfig("loading file", "test", - test.Error(viper.ConfigFileNotFoundError{}).Set("name", "test"). + test.NewBuilder[viper.ConfigFileNotFoundError](). Set("locations", fmt.Sprintf("%s", configPaths)). - Get("").(error))), + Set("name", "test").Get("").(error))), }, "panic after unmarschal failure": { diff --git a/go.mod b/go.mod index 17bece0..03d6063 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/sirupsen/logrus v1.9.3 github.com/spf13/viper v1.19.0 github.com/stretchr/testify v1.9.0 - github.com/tkrop/go-testing v0.0.19 + github.com/tkrop/go-testing v0.0.20 gopkg.in/yaml.v3 v3.0.1 ) diff --git a/go.sum b/go.sum index 7d2f71a..dc9e5c2 100644 --- a/go.sum +++ b/go.sum @@ -51,6 +51,8 @@ github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8 github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= github.com/tkrop/go-testing v0.0.19 h1:3wTJX0TepvkhEC5pz6bSrfZxCqiJDkh3ofJO41hhBus= github.com/tkrop/go-testing v0.0.19/go.mod h1:BFsOhvdwOvNKO8nqAEEMAYEeim3nXjvOzREs6lobJ/8= +github.com/tkrop/go-testing v0.0.20 h1:2zKyBlmmagWpgkoFQUDuD9Vwz35DcC6D+U3VyIACd6o= +github.com/tkrop/go-testing v0.0.20/go.mod h1:BFsOhvdwOvNKO8nqAEEMAYEeim3nXjvOzREs6lobJ/8= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=