Skip to content

Commit e6161a0

Browse files
author
Simeon Kummer
committed
Fix lint errors and add proper waits in cartography test
1 parent 7b4b35d commit e6161a0

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

test/externalTests/cartographyTable.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,20 @@ module.exports = () => async (bot) => {
4141

4242
// Put map in slot 0
4343
await cartographyTable.putMap(mapId, null, 1)
44-
await bot.test.wait(200)
44+
await bot.test.wait(1000)
4545
assert.strictEqual(cartographyTable.mapItem().type, mapId)
4646
assert.strictEqual(cartographyTable.mapItem().count, 1)
4747

4848
// Put paper in slot 1 (modifier)
4949
await cartographyTable.putModifier(paperId, null, 1)
50-
await bot.test.wait(200)
50+
await bot.test.wait(1000)
5151
assert.strictEqual(cartographyTable.modifierItem().type, paperId)
5252
assert.strictEqual(cartographyTable.modifierItem().count, 1)
5353

5454
// Wait for the items to settle in the window
55-
await bot.test.wait(500)
55+
await bot.test.wait(1000)
56+
assert.strictEqual(cartographyTable.mapItem().type, mapId)
57+
assert.strictEqual(cartographyTable.mapItem().count, 1)
5658

5759
// Take items back
5860
await cartographyTable.takeModifier()
@@ -61,7 +63,7 @@ module.exports = () => async (bot) => {
6163
assert.strictEqual(cartographyTable.modifierItem(), null)
6264

6365
cartographyTable.close()
64-
await bot.test.wait(500)
66+
await bot.test.wait(1000)
6567

6668
// Check inventory - items should be back
6769
const mapCount = bot.inventory.count(mapId)

0 commit comments

Comments
 (0)