Skip to content

Commit

Permalink
Unit test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
VeronikaSolovei9 committed Feb 23, 2022
1 parent 88d0b18 commit 8462176
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions exchange/exchange_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3888,8 +3888,12 @@ func TestBuildStoredAuctionResponses(t *testing.T) {
bids, adapters, err := buildStoredAuctionResponse(test.in.StoredAuctionResponses)
assert.NoErrorf(t, err, "%s. HoldAuction error: %v \n", test.desc, err)

assert.Equal(t, test.expected.liveAdapters, adapters, "Incorrect adapter list")
assert.Equal(t, test.expected.adapterBids, bids, "Incorrect bids")
assert.ElementsMatch(t, test.expected.liveAdapters, adapters, "Incorrect adapter list")

for _, bidderName := range test.expected.liveAdapters {
assert.ElementsMatch(t, test.expected.adapterBids[bidderName].bids, bids[bidderName].bids, "Incorrect bids")
}

}
}

Expand Down

0 comments on commit 8462176

Please sign in to comment.