Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
Semior001 committed Mar 11, 2024
1 parent 5fa773e commit abd9627
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ env:
GO_MODULE: github.com/Semior001/groxy

tasks:
lint:
desc: "lint"
cmds:
- golangci-lint run --config=.golangci.yml --timeout=5m ./...

gen:
desc: "generate all"
deps:
Expand Down
2 changes: 1 addition & 1 deletion pkg/proxy/middleware/middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func TestAppInfo(t *testing.T) {
func TestRecoverer(t *testing.T) {
bts := bytes.NewBuffer(nil)
slog.SetDefault(slog.New(slog.NewTextHandler(bts, &slog.HandlerOptions{})))
mw := Recoverer(func(_ any, _ grpc.ServerStream) error { panic("test") })
mw := Recoverer()(func(_ any, _ grpc.ServerStream) error { panic("test") })
var err error
require.NotPanics(t, func() {
err = mw(nil, &mocks.ServerStreamMock{
Expand Down

0 comments on commit abd9627

Please sign in to comment.