diff --git a/api/ocm/tools/transfer/transferhandler/plugin/handler_test.go b/api/ocm/tools/transfer/transferhandler/plugin/handler_test.go index b15b690cd6..f01b6b098e 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 555f351404..85e26c2232 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 494742bc50..e266853d0b 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 (