Skip to content

Commit 283f772

Browse files
committed
fix scope error
1 parent 444ddba commit 283f772

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pkg/stanza/operator/input/windows/input_test.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
"errors"
1111
"testing"
1212
"time"
13-
"unsafe"
1413

1514
"github.com/stretchr/testify/assert"
1615
"github.com/stretchr/testify/require"
@@ -159,15 +158,12 @@ func TestInputRead_RPCInvalidBound(t *testing.T) {
159158
}
160159

161160
nextProc = MockProc{
162-
call: func(args ...uintptr) (uintptr, uintptr, error) {
161+
call: func(_ ...uintptr) (uintptr, uintptr, error) {
163162
nextCalls++
164163
if nextCalls == 1 {
165164
return 0, 0, windows.RPC_S_INVALID_BOUND
166165
}
167166

168-
// Return success on second call
169-
returned := (*uint32)(unsafe.Pointer(args[5]))
170-
*returned = 0 // No events
171167
return 1, 0, nil
172168
},
173169
}

0 commit comments

Comments
 (0)