fix(core): update

This commit is contained in:
Philipp Kunz 2022-02-25 21:35:34 +01:00
parent 45544fffd0
commit 1eef97ee9a

View File

@ -8,11 +8,16 @@ import * as bobcat from '../ts/index';
let testBobcatManager: bobcat.BobcatManager; let testBobcatManager: bobcat.BobcatManager;
let testBobcat: bobcat.Bobcat; let testBobcat: bobcat.Bobcat;
tap.test('first test', async () => { tap.test('should create a bobcat manager', async () => {
testBobcatManager = new bobcat.BobcatManager(); testBobcatManager = new bobcat.BobcatManager();
expect(testBobcatManager).toBeInstanceOf(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 () => { tap.test('should add a Bobcat miner', async () => {
const bobcatAddresses = testQenv.getEnvVarOnDemand('BOBCATS').split(','); const bobcatAddresses = testQenv.getEnvVarOnDemand('BOBCATS').split(',');
console.log(bobcatAddresses); console.log(bobcatAddresses);
@ -22,9 +27,8 @@ tap.test('should add a Bobcat miner', async () => {
} }
}); });
tap.test('', async () => { tap.test('should run maintenance on bobcats', async () => {
testBobcat = new bobcat.Bobcat('bobcat.bleu.de'); await testBobcatManager.runMaintenance();
expect(testBobcat).toBeInstanceOf(bobcat.Bobcat);
}) })
tap.start(); tap.start();