fix(wallet): flaky test TestUpdateCollectiblesData
This commit is contained in:
parent
b0a0f078c4
commit
6e5c91f2d7
|
@ -62,12 +62,12 @@ func TestUpdateCollectiblesData(t *testing.T) {
|
||||||
|
|
||||||
idsNotInDB, err = db.GetIDsNotInDB(extraIds)
|
idsNotInDB, err = db.GetIDsNotInDB(extraIds)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
require.Equal(t, extraIds, idsNotInDB)
|
require.ElementsMatch(t, extraIds, idsNotInDB)
|
||||||
|
|
||||||
combinedIds := append(ids, extraIds...)
|
combinedIds := append(ids, extraIds...)
|
||||||
idsNotInDB, err = db.GetIDsNotInDB(combinedIds)
|
idsNotInDB, err = db.GetIDsNotInDB(combinedIds)
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
require.Equal(t, extraIds, idsNotInDB)
|
require.ElementsMatch(t, extraIds, idsNotInDB)
|
||||||
|
|
||||||
// Check for loaded data
|
// Check for loaded data
|
||||||
loadedMap, err := db.GetData(ids)
|
loadedMap, err := db.GetData(ids)
|
||||||
|
|
Loading…
Reference in New Issue