diff --git a/api/ocm/tools/transfer/transferhandler/plugin/handler_test.go b/api/ocm/tools/transfer/transferhandler/plugin/handler_test.go index b15b690cd..f01b6b098 100644 --- a/api/ocm/tools/transfer/transferhandler/plugin/handler_test.go +++ b/api/ocm/tools/transfer/transferhandler/plugin/handler_test.go @@ -1,3 +1,5 @@ +//go:build unix + package plugin_test import ( diff --git a/api/utils/accessio/limitwriter.go b/api/utils/accessio/limitwriter.go index 555f35140..85e26c223 100644 --- a/api/utils/accessio/limitwriter.go +++ b/api/utils/accessio/limitwriter.go @@ -46,7 +46,7 @@ type LimitedBuffer struct { } func (b *LimitedBuffer) Exceeded() bool { - return b.LimitedWriter.N > b.max + return b.LimitedWriter.N < 0 } func (b *LimitedBuffer) Bytes() []byte { diff --git a/cmds/ocm/commands/ocmcmds/components/transfer/upload_test.go b/cmds/ocm/commands/ocmcmds/components/transfer/upload_test.go index 181793344..96dfad165 100644 --- a/cmds/ocm/commands/ocmcmds/components/transfer/upload_test.go +++ b/cmds/ocm/commands/ocmcmds/components/transfer/upload_test.go @@ -1,3 +1,5 @@ +//go:build unix + package transfer_test import (