Skip to content

Commit

Permalink
pubGENIUS bid adapter: fix bug that requestBids timeout is not respec…
Browse files Browse the repository at this point in the history
…ted (#5940)

* fix requestBids timeout

* fix pubgenius bid adapter test
  • Loading branch information
edmonl authored Nov 9, 2020
1 parent 49f0be3 commit 0a6b322
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/pubgeniusBidAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const spec = {
const data = {
id: bidderRequest.auctionId,
imp: bidRequests.map(buildImp),
tmax: config.getConfig('bidderTimeout'),
tmax: bidderRequest.timeout,
ext: {
pbadapter: {
version: BIDDER_VERSION,
Expand Down
3 changes: 2 additions & 1 deletion test/spec/modules/pubgeniusBidAdapter_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ describe('pubGENIUS adapter', () => {
bidderCode: 'pubgenius',
bidderRequestId: 'fakebidderrequestid',
refererInfo: {},
timeout: 1200,
};

expectedRequest = {
Expand Down Expand Up @@ -149,7 +150,7 @@ describe('pubGENIUS adapter', () => {
};

config.setConfig({
bidderTimeout: 1200,
bidderTimeout: 1000,
pageUrl: undefined,
coppa: undefined,
});
Expand Down

0 comments on commit 0a6b322

Please sign in to comment.