test: client should destroy (#5353)

Co-authored-by: Adrian Paschkowski <leiter04@gmail.com>
This commit is contained in:
nopeless
2021-03-28 22:22:04 +09:00
committed by GitHub
parent 941e36f48a
commit 4099c28776

View File

@@ -24,9 +24,10 @@ client.on('ready', async () => {
assert.strictEqual(guild.afkTimeout, 60);
assert.strictEqual(guild.systemChannel.name, 'system-channel');
await guild.delete();
client.destroy();
} catch (error) {
console.error(error);
} finally {
client.destroy();
}
});