Skip to content

Commit

Permalink
fix(tests): invalid refresher
Browse files Browse the repository at this point in the history
  • Loading branch information
MellKam committed Mar 3, 2024
1 parent c9c737e commit 6574631
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ const refresher = async () => {

export const client = new SpotifyClient(null, {
waitForRateLimit: true,
refresher: () => {
refresher: async () => {
try {
return Deno.readTextFile("/tmp/soundify_test_cache.txt");
return await Deno.readTextFile("/tmp/soundify_test_cache.txt");
} catch (_) {
return refresher();
}
Expand Down

0 comments on commit 6574631

Please sign in to comment.