Skip to content

Commit

Permalink
plugin test in unix, only
Browse files Browse the repository at this point in the history
  • Loading branch information
mandelsoft committed Sep 30, 2024
1 parent 7c7bdfb commit aacee48
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions api/ocm/tools/transfer/transferhandler/plugin/handler_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build unix

package plugin_test

import (
Expand Down
2 changes: 1 addition & 1 deletion api/utils/accessio/limitwriter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 2 additions & 0 deletions cmds/ocm/commands/ocmcmds/components/transfer/upload_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//go:build unix

package transfer_test

import (
Expand Down

0 comments on commit aacee48

Please sign in to comment.