From 9b37e13fadaceb5fe8e1eb428135bcaade0299d4 Mon Sep 17 00:00:00 2001 From: Veronika Solovei Date: Mon, 1 Aug 2022 14:12:34 -0700 Subject: [PATCH] Unit test TestRequestBidsStoredBidResponses fix (#2332) --- exchange/bidder_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exchange/bidder_test.go b/exchange/bidder_test.go index c56f17f7158..6bea9ce226a 100644 --- a/exchange/bidder_test.go +++ b/exchange/bidder_test.go @@ -1527,9 +1527,9 @@ func TestRequestBidsStoredBidResponses(t *testing.T) { assert.Len(t, seatBids, 1) assert.Len(t, seatBids[0].bids, len(tc.expectedBidIds), "Incorrect bids number for test case ", tc.description) - for index, bid := range seatBids[0].bids { - assert.Equal(t, tc.expectedBidIds[index], bid.bid.ID, tc.description) - assert.Equal(t, tc.expectedImpIds[index], bid.bid.ImpID, tc.description) + for _, bid := range seatBids[0].bids { + assert.Contains(t, tc.expectedBidIds, bid.bid.ID, tc.description) + assert.Contains(t, tc.expectedImpIds, bid.bid.ImpID, tc.description) } }