Skip to content

Commit

Permalink
Fix failing emitter tests (close #125)
Browse files Browse the repository at this point in the history
  • Loading branch information
mscwilson committed Dec 20, 2022
1 parent b1f7532 commit 6d3a6e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/tests/EmitterTests/CurlEmitterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private function returnCurlEmitter($type, $uri, $debug) {
// Tests

public function testCurlPostBadUri() {
$tracker = $this->returnTracker("POST", true, "collector.acme.au");
$tracker = $this->returnTracker("POST", true, "snowplow-unregistered-url.this-should-fail.io");
$tracker->flushEmitters();
for ($i = 0; $i < 1; $i++) {
$tracker->trackPageView("www.example.com", "example", "www.referrer.com");
Expand All @@ -68,7 +68,7 @@ public function testCurlPostBadUri() {
}

public function testCurlGetBadUri() {
$tracker = $this->returnTracker("GET", true, "collector.acme.au");
$tracker = $this->returnTracker("GET", true, "snowplow-unregistered-url.this-should-fail.io");
$tracker->flushEmitters();
for ($i = 0; $i < 1; $i++) {
$tracker->trackPageView("www.example.com", "example", "www.referrer.com");
Expand Down
4 changes: 2 additions & 2 deletions tests/tests/EmitterTests/SyncEmitterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private function returnSyncEmitter($type, $uri, $debug, $buffer = 10) {
// Tests

public function testSyncPostBadUri() {
$tracker = $this->returnTracker("POST", true, "collector.acme.au");
$tracker = $this->returnTracker("POST", true, "snowplow-unregistered-url.this-should-fail.io");
$tracker->flushEmitters();
for ($i = 0; $i < 1; $i++) {
$tracker->trackPageView("www.example.com", "example", "www.referrer.com");
Expand All @@ -68,7 +68,7 @@ public function testSyncPostBadUri() {
}

public function testSyncGetBadUri() {
$tracker = $this->returnTracker("GET", true, "collector.acme.au");
$tracker = $this->returnTracker("GET", true, "snowplow-unregistered-url.this-should-fail.io");
$tracker->flushEmitters();
for ($i = 0; $i < 1; $i++) {
$tracker->trackPageView("www.example.com", "example", "www.referrer.com");
Expand Down

0 comments on commit 6d3a6e8

Please sign in to comment.