[#219] Use zaptest.Logger
All checks were successful
/ DCO (pull_request) Successful in 46s
/ Vulncheck (pull_request) Successful in 50s
/ Builds (pull_request) Successful in 1m1s
/ OCI image (pull_request) Successful in 1m38s
/ Lint (pull_request) Successful in 2m30s
/ Tests (pull_request) Successful in 1m29s
/ Integration tests (pull_request) Successful in 6m28s
/ Vulncheck (push) Successful in 48s
/ Builds (push) Successful in 1m2s
/ OCI image (push) Successful in 1m24s
/ Lint (push) Successful in 2m9s
/ Tests (push) Successful in 1m4s
/ Integration tests (push) Successful in 5m34s
All checks were successful
/ DCO (pull_request) Successful in 46s
/ Vulncheck (pull_request) Successful in 50s
/ Builds (pull_request) Successful in 1m1s
/ OCI image (pull_request) Successful in 1m38s
/ Lint (pull_request) Successful in 2m30s
/ Tests (pull_request) Successful in 1m29s
/ Integration tests (pull_request) Successful in 6m28s
/ Vulncheck (push) Successful in 48s
/ Builds (push) Successful in 1m2s
/ OCI image (push) Successful in 1m24s
/ Lint (push) Successful in 2m9s
/ Tests (push) Successful in 1m4s
/ Integration tests (push) Successful in 5m34s
Use zaptest to get logs which get printed only if a test fails or if you ran go test -v. Dont use zaptest.Logger for fuzz otherwise ngfuzz/libfuzz crashes Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
This commit is contained in:
parent
f9c5dc5260
commit
a651b5823f
3 changed files with 14 additions and 24 deletions
|
@ -21,6 +21,7 @@ import (
|
|||
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/object"
|
||||
go_fuzz_utils "github.com/trailofbits/go-fuzz-utils"
|
||||
"github.com/valyala/fasthttp"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -125,7 +126,7 @@ func maybeFillRandom(tp *go_fuzz_utils.TypeProvider, initValue string) (string,
|
|||
}
|
||||
|
||||
func upload(tp *go_fuzz_utils.TypeProvider) (context.Context, *handlerContext, cid.ID, *fasthttp.RequestCtx, string, string, string, error) {
|
||||
hc, err := prepareHandlerContext()
|
||||
hc, err := prepareHandlerContextBase(zap.NewExample())
|
||||
if err != nil {
|
||||
return nil, nil, cid.ID{}, nil, "", "", "", err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue