Skip to content

Commit

Permalink
Only try to set TestingBot info if we're running at TestingBot
Browse files Browse the repository at this point in the history
  • Loading branch information
chibimagic committed Mar 21, 2015
1 parent c63037d commit f2dbfa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WebDriver/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -823,9 +823,9 @@ public function set_browserstack_status($status, $reason = "") {
public function set_testingbot_info($field, $value) {
if ($this->running_at_testingbot()) {
$payload = "test[$field]=$value";
$url_parts = parse_url($this->server_url);
WebDriver::Curl("PUT", "https://" . $url_parts['user'] . "api.testingbot.com/v2/tests/" . $this->session_id, $payload);
}
$url_parts = parse_url($this->server_url);
WebDriver::Curl("PUT", "https://" . $url_parts['user'] . "api.testingbot.com/v2/tests/" . $this->session_id, $payload);
}

/********************************************************************
Expand Down

0 comments on commit f2dbfa3

Please sign in to comment.