Public Access
test(game-detail): wait for points refetch instead of fixed sleep
This commit is contained in:
1 parent
0924600d95
commit
600cf07b5a
1 file changed
+1
-2
@@ -38,6 +38,5 @@ it('checksThePointsAgainAfterTheAchievementRefresh', async () => {
|
||||
|
||||
// The refresh stored the ending achievement: Core would settle the finish now (the old single call did).
|
||||
finishRefresh(json(200, {...game, achievementsStale: false, achievementsUnlocked: 5}));
|
||||
await new Promise((resolve) => setTimeout(resolve, 50));
|
||||
expect(pointsCalls()).toBe(2);
|
||||
await waitFor(() => expect(pointsCalls()).toBe(2));
|
||||
});
|
||||
Reference in new issue
Block a user