Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test prevent process fork #309

Merged
merged 3 commits into from
Aug 24, 2020
Merged

test prevent process fork #309

merged 3 commits into from
Aug 24, 2020

Conversation

Uunnamed
Copy link
Contributor

#fixies #301

_ (wait-running (atom {:port port :host "localhost"}))]
(with-chrome {:args ["--no-sandbox"]} driver
(is true "driver runnig")
(proc/kill process)))))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Напрашивается еще один случай: поднять драйвер и подключиться к нему как к удаленному, при этом новых процессов не появится. Вот только как проверить, что число драйверов не увеличилось? Выполнить sh ps aux мы не можем, как я понимаю.

[etaoin.proc :as proc]))
[etaoin.proc :as proc]
[clojure.string :as str]))
(defn get-count-chromedriver-processes
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

отделить одной строкой от импортов

@Uunnamed Uunnamed merged commit 9694246 into master Aug 24, 2020
@Uunnamed Uunnamed deleted the prevent-process-fork branch August 24, 2020 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants