Skip to content

Commit

Permalink
go.mod: bump go.uber.org/mock from 0.2.0 to 0.3.0 (#1216)
Browse files Browse the repository at this point in the history
* go.mod: bump go.uber.org/mock from 0.2.0 to 0.3.0

Bumps [go.uber.org/mock](https://github.com/uber/mock) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/uber/mock/releases)
- [Changelog](https://github.com/uber-go/mock/blob/main/CHANGELOG.md)
- [Commits](uber-go/mock@v0.2.0...v0.3.0)

---
updated-dependencies:
- dependency-name: go.uber.org/mock
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* regenerate mocks, fix issues

* fix test

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Lovro Mažgon <[email protected]>
  • Loading branch information
dependabot[bot] and lovromazgon authored Sep 18, 2023
1 parent 31e283d commit 1caace7
Show file tree
Hide file tree
Showing 23 changed files with 292 additions and 216 deletions.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ issues:
- path: _test\.go
linters:
- dogsled
- gosec

linters:
# please, do not use `enable-all`: it's deprecated and will be removed soon.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ require (
github.com/rs/zerolog v1.30.0
github.com/twmb/go-cache v1.2.0
go.uber.org/goleak v1.2.1
go.uber.org/mock v0.2.0
go.uber.org/mock v0.3.0
golang.org/x/exp v0.0.0-20230713183714-613f0c0eb8a1
golang.org/x/tools v0.13.0
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -690,8 +690,8 @@ go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE=
go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0=
go.uber.org/goleak v1.2.1 h1:NBol2c7O1ZokfZ0LEU9K6Whx/KnwvepVetCUhtKja4A=
go.uber.org/goleak v1.2.1/go.mod h1:qlT2yGI9QafXHhZZLxlSuNsMw3FFLxBr+tBRlmO1xH4=
go.uber.org/mock v0.2.0 h1:TaP3xedm7JaAgScZO7tlvlKrqT0p7I6OsdGB5YNSMDU=
go.uber.org/mock v0.2.0/go.mod h1:J0y0rp9L3xiff1+ZBfKxlC1fz2+aO16tw0tsDOixfuM=
go.uber.org/mock v0.3.0 h1:3mUxI1No2/60yUYax92Pt8eNOEecx2D3lcXZh2NEZJo=
go.uber.org/mock v0.3.0/go.mod h1:a6FSlNadKUHUa9IP5Vyt1zh4fC7uAwxMutEAscFbkZc=
go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=
go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4=
go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU=
Expand Down
16 changes: 10 additions & 6 deletions pkg/foundation/database/mock/database.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/foundation/log/ctxlogger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ func TestCtxLoggerFatal(t *testing.T) {
t.Fatal("should not reach code after emitting fatal log")
return
}
cmd := exec.Command(os.Args[0], "-test.run=TestCtxLoggerFatal") //nolint:gosec // only a test
cmd := exec.Command(os.Args[0], "-test.run=TestCtxLoggerFatal")
cmd.Env = append(os.Environ(), "CTXLOGGER_FATAL=1")
err := cmd.Run()
if e, ok := err.(*exec.ExitError); !ok || e.ExitCode() != 1 {
Expand Down
1 change: 0 additions & 1 deletion pkg/foundation/semaphore/semaphore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ func HammerSimple(sem *semaphore.Simple, loops int, mu *sync.Mutex) {
tkn := sem.Enqueue()
mu.Unlock()
lock := sem.Acquire(tkn)
//nolint:gosec // math/rand is good enough for a test
time.Sleep(time.Duration(rand.Int63n(int64(maxSleep/time.Nanosecond))) * time.Nanosecond)
sem.Release(lock)
}
Expand Down
62 changes: 33 additions & 29 deletions pkg/orchestrator/mock/orchestrator.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1caace7

Please sign in to comment.