File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
pkg/stanza/operator/input/windows Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import (
10
10
"errors"
11
11
"testing"
12
12
"time"
13
- "unsafe"
14
13
15
14
"github.com/stretchr/testify/assert"
16
15
"github.com/stretchr/testify/require"
@@ -159,15 +158,12 @@ func TestInputRead_RPCInvalidBound(t *testing.T) {
159
158
}
160
159
161
160
nextProc = MockProc {
162
- call : func (args ... uintptr ) (uintptr , uintptr , error ) {
161
+ call : func (_ ... uintptr ) (uintptr , uintptr , error ) {
163
162
nextCalls ++
164
163
if nextCalls == 1 {
165
164
return 0 , 0 , windows .RPC_S_INVALID_BOUND
166
165
}
167
166
168
- // Return success on second call
169
- returned := (* uint32 )(unsafe .Pointer (args [5 ]))
170
- * returned = 0 // No events
171
167
return 1 , 0 , nil
172
168
},
173
169
}
You can’t perform that action at this time.
0 commit comments