From 1eef97ee9a928b576b53700700161701eff7ae89 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Fri, 25 Feb 2022 21:35:34 +0100 Subject: [PATCH] fix(core): update --- test/test.nonci.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/test/test.nonci.ts b/test/test.nonci.ts index 40ea14b..809bef3 100644 --- a/test/test.nonci.ts +++ b/test/test.nonci.ts @@ -8,11 +8,16 @@ import * as bobcat from '../ts/index'; let testBobcatManager: bobcat.BobcatManager; let testBobcat: bobcat.Bobcat; -tap.test('first test', async () => { +tap.test('should create a bobcat manager', async () => { testBobcatManager = new bobcat.BobcatManager(); expect(testBobcatManager).toBeInstanceOf(bobcat.BobcatManager); }); +tap.test('should create a bobcat', async () => { + testBobcat = new bobcat.Bobcat('bobcat.bleu.de'); + expect(testBobcat).toBeInstanceOf(bobcat.Bobcat); +}) + tap.test('should add a Bobcat miner', async () => { const bobcatAddresses = testQenv.getEnvVarOnDemand('BOBCATS').split(','); console.log(bobcatAddresses); @@ -22,9 +27,8 @@ tap.test('should add a Bobcat miner', async () => { } }); -tap.test('', async () => { - testBobcat = new bobcat.Bobcat('bobcat.bleu.de'); - expect(testBobcat).toBeInstanceOf(bobcat.Bobcat); +tap.test('should run maintenance on bobcats', async () => { + await testBobcatManager.runMaintenance(); }) tap.start();