skip to Main Content

Redis – Mocking Bull queues in NestJS

I am trying to test that after sending a request to one of my controllers, the queue pushes a job. The implementation itself works as expected. This is my app.module.ts @Module({ imports: [ HttpModule, TypeOrmModule.forRoot(typeOrmConfig), BullModule.forRoot({ redis: { host: redisConfig.host,…

VIEW QUESTION

Redis – django channels WebsocketCommunicator TimeoutError

I am trying to run the following test: tests.py from rest_framework.test import APITestCase from myapp.routing import application from channels.testing import WebsocketCommunicator from account.models import User from rest_framework.authtoken.models import Token class Tests(APITestCase): def setUp(self): self.user = User.objects.create(email='[email protected]', password='a password') self.token, created…

VIEW QUESTION

currentAccessToken()->delete throw exception on test but works fine in real – PHP Versions

Sanctum Version: ^2.11.2 Laravel Version: 8.54 PHP Version: 7.3|^8.0 Database Driver & Version: Description: deleting current user token works fine but in test it throw exception Steps To Reproduce: routes/api.php Route::prefix('auth')->middleware('auth:sanctum')->group(function () { Route::delete('/sign_out', [AuthController::class, 'signOut']); /// other routes });…

VIEW QUESTION
Back To Top
Search