Skip to content

Commit

Permalink
Update tests for deregistration
Browse files Browse the repository at this point in the history
  • Loading branch information
platfowner committed Aug 14, 2024
1 parent 9db9e7c commit 895752d
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions test/integration/event_handler.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,26 +254,6 @@ describe('Event Handler Test', function() {
deregisterFilter(wsClient, filterId);
});

it('Deregister filter already deregisterd filter', function(done) {
// Deregister filter
wsClient.on('message', (message) => {
try {
const parsedMessage = JSON.parse(message);
const messageType = parsedMessage.type;
const errorCode = _.get(parsedMessage, 'data.code');
const errorMessage = _.get(parsedMessage, 'data.message');
if (messageType === BlockchainEventMessageTypes.EMIT_ERROR) {
expect(errorCode).to.equal(EventHandlerErrorCode.FAILED_TO_DEREGISTER_FILTER);
expect(errorMessage).to.equal(`Failed to deregister filter with filter ID: ${filterId} due to error: Can't find filter by filter id`)
done();
}
} catch (err) {
done(err);
}
});
deregisterFilter(wsClient, filterId);
});

it('Register too many filters', function(done) {
let exceededCnt = 0;
wsClient.on('message', (message) => {
Expand Down

0 comments on commit 895752d

Please sign in to comment.