• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

safe-global / safe-client-gateway / 11620847384

31 Oct 2024 10:28PM UTC coverage: 89.075% (-0.03%) from 89.104%
11620847384

push

github

hectorgomezv
Disable not used queues/database modules on E2E tests

2606 of 3280 branches covered (79.45%)

Branch coverage included in aggregate %.

4 of 5 new or added lines in 1 file covered. (80.0%)

8874 of 9608 relevant lines covered (92.36%)

400.79 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

90.91
/src/datasources/queues/queues-api.shutdown.hook.ts
1
import { QueueConsumer } from '@/datasources/queues/queues-api.module';
2
import { ILoggingService, LoggingService } from '@/logging/logging.interface';
106✔
3
import { asError } from '@/logging/utils';
106✔
4
import { Inject, Injectable, OnModuleDestroy } from '@nestjs/common';
106✔
5

6
@Injectable()
7
export class QueuesApiShutdownHook implements OnModuleDestroy {
106✔
8
  constructor(
9
    @Inject('QueueConsumer') private readonly queueConsumer: QueueConsumer,
8✔
10
    @Inject(LoggingService) private readonly loggingService: ILoggingService,
8✔
11
  ) {}
12

13
  async onModuleDestroy(): Promise<void> {
14
    this.loggingService.info('Closing connection to queues');
8✔
15
    try {
8✔
16
      await this.queueConsumer.channel.close();
8✔
17
      this.loggingService.info('Connection to queues closed');
8✔
18
    } catch (err) {
NEW
19
      this.loggingService.error(
×
20
        `Failed to close connection to queues: ${asError(err)}`,
21
      );
22
    }
23
  }
24
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc