diff --git a/pkg/osquery/runtime/runtime_helpers_windows.go b/pkg/osquery/runtime/runtime_helpers_windows.go index cfbe90799..5c5dda948 100644 --- a/pkg/osquery/runtime/runtime_helpers_windows.go +++ b/pkg/osquery/runtime/runtime_helpers_windows.go @@ -60,7 +60,7 @@ func SocketPath(rootDir string) string { // launcher and osquery. We would like to be able to run multiple // launchers. // - // We could use something based on the laumcher root, but given the + // We could use something based on the launcher root, but given the // context this runs in a ulid seems simpler. return fmt.Sprintf(`\\.\pipe\kolide-osquery-%s`, ulid.New()) } diff --git a/pkg/osquery/runtime/runtime_test.go b/pkg/osquery/runtime/runtime_test.go index 8ed916d04..b21b9a111 100644 --- a/pkg/osquery/runtime/runtime_test.go +++ b/pkg/osquery/runtime/runtime_test.go @@ -4,7 +4,6 @@ package runtime import ( "context" - "errors" "fmt" "log/slog" "os" @@ -358,7 +357,7 @@ func TestWithOsqueryFlags(t *testing.T) { waitHealthy(t, runner, &logBytes) assert.Equal(t, []string{"verbose=false"}, runner.instance.opts.osqueryFlags) - runner.Interrupt(errors.New("test error")) + require.NoError(t, runner.Shutdown()) } func TestFlagsChanged(t *testing.T) { @@ -455,7 +454,7 @@ func TestFlagsChanged(t *testing.T) { k.AssertExpectations(t) - runner.Interrupt(errors.New("test error")) + require.NoError(t, runner.Shutdown()) } // waitHealthy expects the instance to be healthy within 30 seconds, or else