Skip to content

Commit

Permalink
Behat testing - uncoditionally changing jobe server to 172.17.0.1:400…
Browse files Browse the repository at this point in the history
…0 in jobesandbox.php
  • Loading branch information
mckeownp committed Mar 4, 2024
1 parent 5e8c78b commit 2aacf6f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions classes/jobesandbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ public function __construct() {
global $CFG;
qtype_coderunner_sandbox::__construct();

// Hack to force use of a local jobe host when behat testing.
if ($CFG->prefix == "bht_" || $CFG->prefix == "b_") {
$this->jobeserver = "172.17.0.1:4000"; // "localhost:4000";
} else {
$this->jobeserver = get_config('qtype_coderunner', 'jobe_host');
}

// // Hack to force use of a local jobe host when behat testing.
// if ($CFG->prefix == "bht_" || $CFG->prefix == "b_") {
// $this->jobeserver = "172.17.0.1:4000"; // "localhost:4000";
// } else {
// $this->jobeserver = get_config('qtype_coderunner', 'jobe_host');
// }
$this->jobeserver = '172.17.0.1:4000';
$this->apikey = get_config('qtype_coderunner', 'jobe_apikey');
$this->languages = null;
}
Expand Down

0 comments on commit 2aacf6f

Please sign in to comment.