Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jordy25519 committed Dec 2, 2020
1 parent 12ff0ac commit a9d8bf4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/api/test/e2e/api.create.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ describe('e2e api create', () => {
expect(hash).toBeDefined();
});

it('Should get rejected if the connection fails', async () => {
it('Should get rejected if the connection fails', async done => {
const incorrectEndPoint = 'wss://rimu.unfrastructure.io/private/ws';
expect(Api.create({ provider: incorrectEndPoint })).rejects.toThrow('Connection fail');
await expect(Api.create({ provider: incorrectEndPoint })).rejects.toThrow('Connection fail');
done();
});

// TODO - enable and update this test after runtime upgrade on Azalea
Expand Down

0 comments on commit a9d8bf4

Please sign in to comment.