Skip to content

Commit

Permalink
Finteza Analytics Adapter: bugfix for flaky test (Issue prebid#7348) (p…
Browse files Browse the repository at this point in the history
…rebid#7356)

* Testing if Another Adapter is the Issue

* researching error

* add time to test latency

* add this

* fix undefined

* move length check after other checks

* fix linting

* move other length test

* update other length check to test
  • Loading branch information
ChrisHuie authored and Chris Pabst committed Jan 10, 2022
1 parent 0e2e1cb commit fd00dd5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/spec/modules/fintezaAnalyticsAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@ describe('finteza analytics adapter', function () {
// Emit the events with the "real" arguments
events.emit(constants.EVENTS.BID_RESPONSE, bidResponse);

expect(server.requests.length).to.equal(2);

expect(server.requests[0].method).to.equal('GET');
expect(server.requests[0].withCredentials).to.equal(true);

expect(server.requests.length).to.equal(2);

let url = parseUrl(server.requests[0].url);

expect(url.protocol).to.equal('https');
Expand Down Expand Up @@ -173,11 +173,11 @@ describe('finteza analytics adapter', function () {
// Emit the events with the "real" arguments
events.emit(constants.EVENTS.BID_WON, bidWon);

expect(server.requests.length).to.equal(1);

expect(server.requests[0].method).to.equal('GET');
expect(server.requests[0].withCredentials).to.equal(true);

expect(server.requests.length).to.equal(1);

const url = parseUrl(server.requests[0].url);

expect(url.protocol).to.equal('https');
Expand Down Expand Up @@ -212,11 +212,11 @@ describe('finteza analytics adapter', function () {
// Emit the events with the "real" arguments
events.emit(constants.EVENTS.BID_TIMEOUT, bidTimeout);

expect(server.requests.length).to.equal(1);

expect(server.requests[0].method).to.equal('GET');
expect(server.requests[0].withCredentials).to.equal(true);

expect(server.requests.length).to.equal(1);

const url = parseUrl(server.requests[0].url);

expect(url.protocol).to.equal('https');
Expand Down

0 comments on commit fd00dd5

Please sign in to comment.