Changed GE database uids to account database format

This commit is contained in:
Ryan
2022-09-03 08:47:53 +00:00
parent 2de2f9607d
commit 0ea1438a33
5 changed files with 13 additions and 16 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ import kotlin.random.Random
fun generateOffer(itemId: Int, amount: Int, price: Int, sale: Boolean, username: String = "test ${System.currentTimeMillis()}") : GrandExchangeOffer {
val offer = GrandExchangeOffer()
val uid = username.hashCode()
val uid = username.hashCode() // normally this would be the account's uid but in the test we don't have an account
offer.offerState = OfferState.REGISTERED
offer.itemID = itemId
offer.offeredValue = price
@@ -115,4 +115,4 @@ import kotlin.random.Random
Assertions.assertEquals(false, b.isCancelled)
}
}
}
}