diff --git a/pkg/osquery/runtime/runtime_posix_test.go b/pkg/osquery/runtime/runtime_posix_test.go index e5e4b6051..fc00fc88c 100644 --- a/pkg/osquery/runtime/runtime_posix_test.go +++ b/pkg/osquery/runtime/runtime_posix_test.go @@ -50,7 +50,7 @@ func TestOsquerySlowStart(t *testing.T) { k.On("OsqueryFlags").Return([]string{}).Maybe() k.On("RegisterChangeObserver", mock.Anything, mock.Anything, mock.Anything, mock.Anything, mock.Anything) k.On("Slogger").Return(slogger) - k.On("LatestOsquerydPath", mock.Anything).Return(testOsqueryBinaryDirectory) + k.On("LatestOsquerydPath", mock.Anything).Return(testOsqueryBinary) k.On("LoggingInterval").Return(5 * time.Minute).Maybe() k.On("LogMaxBytesPerBatch").Return(0).Maybe() k.On("Transport").Return("jsonrpc").Maybe() @@ -97,7 +97,7 @@ func TestExtensionSocketPath(t *testing.T) { k.On("RootDirectory").Return(rootDirectory).Maybe() k.On("OsqueryVerbose").Return(true).Maybe() k.On("OsqueryFlags").Return([]string{}).Maybe() - k.On("LatestOsquerydPath", mock.Anything).Return(testOsqueryBinaryDirectory) + k.On("LatestOsquerydPath", mock.Anything).Return(testOsqueryBinary) k.On("LoggingInterval").Return(5 * time.Minute).Maybe() k.On("LogMaxBytesPerBatch").Return(0).Maybe() k.On("Transport").Return("jsonrpc").Maybe()