Skip to content

test: 🧪 refactor some tests #452

test: 🧪 refactor some tests

test: 🧪 refactor some tests #452

GitHub Actions / Test Results failed Sep 15, 2024 in 0s

7 fail, 22 pass in 21m 37s

29 tests  ±0   22 ✅ +4   21m 37s ⏱️ -1s
 6 suites ±0    0 💤 ±0 
 6 files   ±0    7 ❌  - 4 

Results for commit 5a52242. ± Comparison against earlier commit a13b01f.

Annotations

Check warning on line 0 in FoodDelivery.Services.Customers.EndToEndTests.Customers.Features.GettingCustomerById.v1.GetCustomerByIdTests

See this annotation in the file changed.

@github-actions github-actions / Test Results

can returns valid response using valid id and auth credentials (FoodDelivery.Services.Customers.EndToEndTests.Customers.Features.GettingCustomerById.v1.GetCustomerByIdTests) failed

tests/Services/Customers/FoodDelivery.Services.Customers.EndToEndTests/TestResults/test-results.trx [took 0s]
Raw output
Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException : Expected response to satisfy one or more model assertions, but it wasn't: 

    - expectation has property x.Customer.FirstName that the other object does not have.
    - expectation has property x.Customer.LastName that the other object does not have.
    - expectation has property x.Customer.FullName that the other object does not have.
    - expectation has property x.Customer.Created that the other object does not have.


The HTTP response was:

HTTP/1.1 200 OK
api-supported-versions: 1.0
Content-Type: application/json; charset=utf-8
Content-Length: 420

{
  "customer": {
    "id": "d170beb7-5b16-3911-5c33-2e1273d50e33",
    "customerId": 1,
    "identityId": "2585bd39-a80e-0e1f-7c29-67807483385b",
    "email": "[email protected]",
    "name": "Braden Adams",
    "country": "Colombia",
    "city": "Lake Garrick",
    "detailAddress": "45760 Maggio Route, Lake Eva, Yemen",
    "nationality": "Global",
    "birthDate": "2024-09-15T11:46:24.425\u002B00:00",
    "phoneNumber": "(\u002B53)3603337355",
    "createdAt": "0001-01-01T00:00:00"
  }
}
The originating HTTP request was:

GET http://localhost/api/v1/customers/d170beb7-5b16-3911-5c33-2e1273d50e33 HTTP 1.1
Accept: application/json
Authorization: FakeBearer eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjUwNzNmMGYwLTg1NWEtNDhlNi05MTY4LWQ0ZTIwZjFkMjg0MCIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL25hbWUiOiJtZWhkaTIiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9lbWFpbGFkZHJlc3MiOiJtZWhkaTJAdGVzdC5jb20iLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOiJ1c2VyIiwiZXhwIjoxNzI3MDA1NTgzfQ.
Content-Length: 0
   at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message)
   at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
   at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
   at FluentAssertions.Web.HttpResponseMessageAssertions.Satisfy[TModel](Action`1 assertion, String because, Object[] becauseArgs)
   at FluentAssertions.SatisfyModelAssertionsExtensions.Satisfy[TModel](HttpResponseMessageAssertions`1 parent, Action`1 assertion, String because, Object[] becauseArgs)
   at FoodDelivery.Services.Customers.EndToEndTests.Customers.Features.GettingCustomerById.v1.GetCustomerByIdTests.can_returns_valid_response_using_valid_id_and_auth_credentials() in /home/runner/work/food-delivery-microservices/food-delivery-microservices/tests/Services/Customers/FoodDelivery.Services.Customers.EndToEndTests/Customers/Features/GettingCustomerById/v1/GetCustomerByIdTests.cs:line 57
--- End of stack trace from previous location ---

Check warning on line 0 in FoodDelivery.Services.Customers.EndToEndTests.Customers.Features.GettingCustomerById.v1.GetCustomerByIdTests

See this annotation in the file changed.

@github-actions github-actions / Test Results

must returns bad request status code with invalid (FoodDelivery.Services.Customers.EndToEndTests.Customers.Features.GettingCustomerById.v1.GetCustomerByIdTests) failed

tests/Services/Customers/FoodDelivery.Services.Customers.EndToEndTests/TestResults/test-results.trx [took 0s]
Raw output
Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException : Expected response to satisfy one or more model assertions, but it wasn't: 

    - expected pr.Title to be "ValidationException" with a length of 19, but "Validation Exception" has a length of 20, differs near " Ex" (index 10).
    - expected pr.Type to be "https://tools.ietf.org/html/rfc7231#section-6.5.1" with a length of 49, but "https://tools.ietf.org/html/rfc9110#section-15.5.1" has a length of 50, differs near "911" (index 31).


The HTTP response was:

HTTP/1.1 400 BadRequest
api-supported-versions: 1.0
Content-Type: application/problem+json
Content-Length: 1068

{
  "type": "https://tools.ietf.org/html/rfc9110#section-15.5.1",
  "title": "Validation Exception",
  "status": 400,
  "detail": "\u0027Id\u0027 must not be empty.",
  "instance": "GET /api/v1/customers/00000000-0000-0000-0000-000000000000",
  "exception": {
    "details": "BuildingBlocks.Core.Exception.Types.ValidationException",
    "headers": {
      "Accept": [
        "application/json"
      ],
      "Authorization": [
        "FakeBearer eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjQwNzNmMGYwLTg1NWEtNDhlNi05MTY4LWQ0ZTIwZjFkMjgzOSIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL25hbWUiOiJtZWhkaSIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL2VtYWlsYWRkcmVzcyI6Im1laGRpQHRlc3QuY29tIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9yb2xlIjoiYWRtaW4iLCJleHAiOjE3MjcwMDU1ODR9."
      ],
      "Host": [
        "localhost"
      ]
    },
    "path": "/api/v1/customers/00000000-0000-0000-0000-000000000000",
    "endpoint": "Get customer by id",
    "routeValues": {
      "id": "00000000-0000-0000-0000-000000000000",
      "version": "1"
    }
  }
}
The originating HTTP request was:

GET http://localhost/api/v1/customers/00000000-0000-0000-0000-000000000000 HTTP 1.1
Accept: application/json
Authorization: FakeBearer eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjQwNzNmMGYwLTg1NWEtNDhlNi05MTY4LWQ0ZTIwZjFkMjgzOSIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL25hbWUiOiJtZWhkaSIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL2VtYWlsYWRkcmVzcyI6Im1laGRpQHRlc3QuY29tIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9yb2xlIjoiYWRtaW4iLCJleHAiOjE3MjcwMDU1ODR9.
Content-Length: 0
   at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message)
   at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
   at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
   at FluentAssertions.Web.HttpResponseMessageAssertions.Satisfy[TModel](Action`1 assertion, String because, Object[] becauseArgs)
   at FluentAssertions.SatisfyModelAssertionsExtensions.Satisfy[TModel](HttpResponseMessageAssertions`1 parent, Action`1 assertion, String because, Object[] becauseArgs)
   at FoodDelivery.Services.Customers.EndToEndTests.Customers.Features.GettingCustomerById.v1.GetCustomerByIdTests.must_returns_bad_request_status_code_with_invalid() in /home/runner/work/food-delivery-microservices/food-delivery-microservices/tests/Services/Customers/FoodDelivery.Services.Customers.EndToEndTests/Customers/Features/GettingCustomerById/v1/GetCustomerByIdTests.cs:line 140
--- End of stack trace from previous location ---

Check warning on line 0 in FoodDelivery.Services.Customers.EndToEndTests.Customers.Features.GettingCustomerById.v1.GetCustomerByIdTests

See this annotation in the file changed.

@github-actions github-actions / Test Results

must returns not found status code when customer not exists (FoodDelivery.Services.Customers.EndToEndTests.Customers.Features.GettingCustomerById.v1.GetCustomerByIdTests) failed

tests/Services/Customers/FoodDelivery.Services.Customers.EndToEndTests/TestResults/test-results.trx [took 0s]
Raw output
Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException : Expected response to satisfy one or more model assertions, but it wasn't: 

    - expected pr.Title to be "CustomerNotFoundException" with a length of 25, but "Customer Not Found Exception" has a length of 28, differs near " No" (index 8).
    - expected pr.Type to be "https://tools.ietf.org/html/rfc7231#section-6.5.4" with a length of 49, but "https://tools.ietf.org/html/rfc9110#section-15.5.5" has a length of 50, differs near "911" (index 31).


The HTTP response was:

HTTP/1.1 404 NotFound
api-supported-versions: 1.0
Content-Type: application/problem+json
Content-Length: 1154

{
  "type": "https://tools.ietf.org/html/rfc9110#section-15.5.5",
  "title": "Customer Not Found Exception",
  "status": 404,
  "detail": "Customer with id \u0027bf90d537-52b8-4b52-b296-21352f6d7112\u0027 not found.",
  "instance": "GET /api/v1/customers/bf90d537-52b8-4b52-b296-21352f6d7112",
  "exception": {
    "details": "FoodDelivery.Services.Customers.Customers.Exceptions.Application.CustomerNotFoundException",
    "headers": {
      "Accept": [
        "application/json"
      ],
      "Authorization": [
        "FakeBearer eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjQwNzNmMGYwLTg1NWEtNDhlNi05MTY4LWQ0ZTIwZjFkMjgzOSIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL25hbWUiOiJtZWhkaSIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL2VtYWlsYWRkcmVzcyI6Im1laGRpQHRlc3QuY29tIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9yb2xlIjoiYWRtaW4iLCJleHAiOjE3MjcwMDU1ODR9."
      ],
      "Host": [
        "localhost"
      ]
    },
    "path": "/api/v1/customers/bf90d537-52b8-4b52-b296-21352f6d7112",
    "endpoint": "Get customer by id",
    "routeValues": {
      "id": "bf90d537-52b8-4b52-b296-21352f6d7112",
      "version": "1"
    }
  }
}
The originating HTTP request was:

GET http://localhost/api/v1/customers/bf90d537-52b8-4b52-b296-21352f6d7112 HTTP 1.1
Accept: application/json
Authorization: FakeBearer eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjQwNzNmMGYwLTg1NWEtNDhlNi05MTY4LWQ0ZTIwZjFkMjgzOSIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL25hbWUiOiJtZWhkaSIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL2VtYWlsYWRkcmVzcyI6Im1laGRpQHRlc3QuY29tIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9yb2xlIjoiYWRtaW4iLCJleHAiOjE3MjcwMDU1ODR9.
Content-Length: 0
   at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message)
   at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
   at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
   at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
   at FluentAssertions.Web.HttpResponseMessageAssertions.Satisfy[TModel](Action`1 assertion, String because, Object[] becauseArgs)
   at FluentAssertions.SatisfyModelAssertionsExtensions.Satisfy[TModel](HttpResponseMessageAssertions`1 parent, Action`1 assertion, String because, Object[] becauseArgs)
   at FoodDelivery.Services.Customers.EndToEndTests.Customers.Features.GettingCustomerById.v1.GetCustomerByIdTests.must_returns_not_found_status_code_when_customer_not_exists() in /home/runner/work/food-delivery-microservices/food-delivery-microservices/tests/Services/Customers/FoodDelivery.Services.Customers.EndToEndTests/Customers/Features/GettingCustomerById/v1/GetCustomerByIdTests.cs:line 108
--- End of stack trace from previous location ---

Check warning on line 0 in FoodDelivery.Services.Customers.IntegrationTests.Users.Features.RegisteringUser.v1.Events.External.UserRegisteredTests

See this annotation in the file changed.

@github-actions github-actions / Test Results

should save mongo customer read model in internal persistence message after consuming message (FoodDelivery.Services.Customers.IntegrationTests.Users.Features.RegisteringUser.v1.Events.External.UserRegisteredTests) failed

tests/Services/Customers/FoodDelivery.Services.Customers.IntegrationTests/TestResults/test-results.trx [took 5m 3s]
Raw output
System.AggregateException : One or more errors occurred. (Condition not met for the test in the 'True' second.) (A task was canceled.)
---- System.TimeoutException : Condition not met for the test in the 'True' second.
---- System.Threading.Tasks.TaskCanceledException : A task was canceled.
----- Inner Stack Trace #1 (System.TimeoutException) -----
   at Tests.Shared.Fixtures.SharedFixture`1.WaitUntilConditionMet(Func`1 conditionToMet, Nullable`1 timeoutSecond, String exception) in /home/runner/work/food-delivery-microservices/food-delivery-microservices/tests/Shared/Tests.Shared/Fixtures/SharedFixture.cs:line 422
   at Tests.Shared.Fixtures.SharedFixture`1.ShouldProcessedPersistInternalCommand[TInternalCommand](CancellationToken cancellationToken) in /home/runner/work/food-delivery-microservices/food-delivery-microservices/tests/Shared/Tests.Shared/Fixtures/SharedFixture.cs:line 622
   at FoodDelivery.Services.Customers.IntegrationTests.Users.Features.RegisteringUser.v1.Events.External.UserRegisteredTests.should_save_mongo_customer_read_model_in_internal_persistence_message_after_consuming_message() in /home/runner/work/food-delivery-microservices/food-delivery-microservices/tests/Services/Customers/FoodDelivery.Services.Customers.IntegrationTests/Users/Features/RegisteringUser/v1/Events/External/UserRegisteredTests.cs:line 97
--- End of stack trace from previous location ---
----- Inner Stack Trace #2 (System.Threading.Tasks.TaskCanceledException) -----
   at Tests.Shared.Fixtures.RabbitMQContainerFixture.CleanupQueuesAsync(CancellationToken cancellationToken) in /home/runner/work/food-delivery-microservices/food-delivery-microservices/tests/Shared/Tests.Shared/Fixtures/RabbitMQContainerFixture.cs:line 62
   at Tests.Shared.Fixtures.SharedFixture`1.CleanupMessaging(CancellationToken cancellationToken) in /home/runner/work/food-delivery-microservices/food-delivery-microservices/tests/Shared/Tests.Shared/Fixtures/SharedFixture.cs:line 242
   at Tests.Shared.TestBase.IntegrationTest`1.DisposeAsync() in /home/runner/work/food-delivery-microservices/food-delivery-microservices/tests/Shared/Tests.Shared/TestBase/IntegrationTestBase.cs:line 56

Check warning on line 0 in FoodDelivery.Services.Customers.IntegrationTests.Users.Features.RegisteringUser.v1.Events.External.UserRegisteredTests

See this annotation in the file changed.

@github-actions github-actions / Test Results

should save customer created integration event in the outbox after consuming message (FoodDelivery.Services.Customers.IntegrationTests.Users.Features.RegisteringUser.v1.Events.External.UserRegisteredTests) failed

tests/Services/Customers/FoodDelivery.Services.Customers.IntegrationTests/TestResults/test-results.trx [took 5m 0s]
Raw output
System.AggregateException : One or more errors occurred. (Condition not met for the test in the 'True' second.) (A task was canceled.)
---- System.TimeoutException : Condition not met for the test in the 'True' second.
---- System.Threading.Tasks.TaskCanceledException : A task was canceled.
----- Inner Stack Trace #1 (System.TimeoutException) -----
   at Tests.Shared.Fixtures.SharedFixture`1.WaitUntilConditionMet(Func`1 conditionToMet, Nullable`1 timeoutSecond, String exception) in /home/runner/work/food-delivery-microservices/food-delivery-microservices/tests/Shared/Tests.Shared/Fixtures/SharedFixture.cs:line 422
   at Tests.Shared.Fixtures.SharedFixture`1.ShouldProcessedOutboxPersistMessage[TMessage](CancellationToken cancellationToken) in /home/runner/work/food-delivery-microservices/food-delivery-microservices/tests/Shared/Tests.Shared/Fixtures/SharedFixture.cs:line 594
   at FoodDelivery.Services.Customers.IntegrationTests.Users.Features.RegisteringUser.v1.Events.External.UserRegisteredTests.should_save_customer_created_integration_event_in_the_outbox_after_consuming_message() in /home/runner/work/food-delivery-microservices/food-delivery-microservices/tests/Services/Customers/FoodDelivery.Services.Customers.IntegrationTests/Users/Features/RegisteringUser/v1/Events/External/UserRegisteredTests.cs:line 129
--- End of stack trace from previous location ---
----- Inner Stack Trace #2 (System.Threading.Tasks.TaskCanceledException) -----
   at Tests.Shared.Fixtures.RabbitMQContainerFixture.CleanupQueuesAsync(CancellationToken cancellationToken) in /home/runner/work/food-delivery-microservices/food-delivery-microservices/tests/Shared/Tests.Shared/Fixtures/RabbitMQContainerFixture.cs:line 62
   at Tests.Shared.Fixtures.SharedFixture`1.CleanupMessaging(CancellationToken cancellationToken) in /home/runner/work/food-delivery-microservices/food-delivery-microservices/tests/Shared/Tests.Shared/Fixtures/SharedFixture.cs:line 242
   at Tests.Shared.TestBase.IntegrationTest`1.DisposeAsync() in /home/runner/work/food-delivery-microservices/food-delivery-microservices/tests/Shared/Tests.Shared/TestBase/IntegrationTestBase.cs:line 56

Check warning on line 0 in FoodDelivery.Services.Customers.IntegrationTests.Users.Features.RegisteringUser.v1.Events.External.UserRegisteredTests

See this annotation in the file changed.

@github-actions github-actions / Test Results

should create new mongo customer read model in the mongodb after consuming message (FoodDelivery.Services.Customers.IntegrationTests.Users.Features.RegisteringUser.v1.Events.External.UserRegisteredTests) failed

tests/Services/Customers/FoodDelivery.Services.Customers.IntegrationTests/TestResults/test-results.trx [took 5m 0s]
Raw output
System.AggregateException : One or more errors occurred. (Condition not met for the test in the 'True' second.) (A task was canceled.)
---- System.TimeoutException : Condition not met for the test in the 'True' second.
---- System.Threading.Tasks.TaskCanceledException : A task was canceled.
----- Inner Stack Trace #1 (System.TimeoutException) -----
   at Tests.Shared.Fixtures.SharedFixture`1.WaitUntilConditionMet(Func`1 conditionToMet, Nullable`1 timeoutSecond, String exception) in /home/runner/work/food-delivery-microservices/food-delivery-microservices/tests/Shared/Tests.Shared/Fixtures/SharedFixture.cs:line 422
   at FoodDelivery.Services.Customers.IntegrationTests.Users.Features.RegisteringUser.v1.Events.External.UserRegisteredTests.should_create_new_mongo_customer_read_model_in_the_mongodb_after_consuming_message() in /home/runner/work/food-delivery-microservices/food-delivery-microservices/tests/Services/Customers/FoodDelivery.Services.Customers.IntegrationTests/Users/Features/RegisteringUser/v1/Events/External/UserRegisteredTests.cs:line 108
--- End of stack trace from previous location ---
----- Inner Stack Trace #2 (System.Threading.Tasks.TaskCanceledException) -----
   at Tests.Shared.Fixtures.RabbitMQContainerFixture.CleanupQueuesAsync(CancellationToken cancellationToken) in /home/runner/work/food-delivery-microservices/food-delivery-microservices/tests/Shared/Tests.Shared/Fixtures/RabbitMQContainerFixture.cs:line 62
   at Tests.Shared.Fixtures.SharedFixture`1.CleanupMessaging(CancellationToken cancellationToken) in /home/runner/work/food-delivery-microservices/food-delivery-microservices/tests/Shared/Tests.Shared/Fixtures/SharedFixture.cs:line 242
   at Tests.Shared.TestBase.IntegrationTest`1.DisposeAsync() in /home/runner/work/food-delivery-microservices/food-delivery-microservices/tests/Shared/Tests.Shared/TestBase/IntegrationTestBase.cs:line 56

Check warning on line 0 in FoodDelivery.Services.Customers.IntegrationTests.Users.Features.RegisteringUser.v1.Events.External.UserRegisteredTests

See this annotation in the file changed.

@github-actions github-actions / Test Results

should create new customer in postgres write db when after consuming message (FoodDelivery.Services.Customers.IntegrationTests.Users.Features.RegisteringUser.v1.Events.External.UserRegisteredTests) failed

tests/Services/Customers/FoodDelivery.Services.Customers.IntegrationTests/TestResults/test-results.trx [took 5m 0s]
Raw output
System.AggregateException : One or more errors occurred. (Condition not met for the test in the 'True' second.) (A task was canceled.)
---- System.TimeoutException : Condition not met for the test in the 'True' second.
---- System.Threading.Tasks.TaskCanceledException : A task was canceled.
----- Inner Stack Trace #1 (System.TimeoutException) -----
   at Tests.Shared.Fixtures.SharedFixture`1.WaitUntilConditionMet(Func`1 conditionToMet, Nullable`1 timeoutSecond, String exception) in /home/runner/work/food-delivery-microservices/food-delivery-microservices/tests/Shared/Tests.Shared/Fixtures/SharedFixture.cs:line 422
   at FoodDelivery.Services.Customers.IntegrationTests.Users.Features.RegisteringUser.v1.Events.External.UserRegisteredTests.should_create_new_customer_in_postgres_write_db_when_after_consuming_message() in /home/runner/work/food-delivery-microservices/food-delivery-microservices/tests/Services/Customers/FoodDelivery.Services.Customers.IntegrationTests/Users/Features/RegisteringUser/v1/Events/External/UserRegisteredTests.cs:line 76
--- End of stack trace from previous location ---
----- Inner Stack Trace #2 (System.Threading.Tasks.TaskCanceledException) -----
   at Tests.Shared.Fixtures.RabbitMQContainerFixture.CleanupQueuesAsync(CancellationToken cancellationToken) in /home/runner/work/food-delivery-microservices/food-delivery-microservices/tests/Shared/Tests.Shared/Fixtures/RabbitMQContainerFixture.cs:line 62
   at Tests.Shared.Fixtures.SharedFixture`1.CleanupMessaging(CancellationToken cancellationToken) in /home/runner/work/food-delivery-microservices/food-delivery-microservices/tests/Shared/Tests.Shared/Fixtures/SharedFixture.cs:line 242
   at Tests.Shared.TestBase.IntegrationTest`1.DisposeAsync() in /home/runner/work/food-delivery-microservices/food-delivery-microservices/tests/Shared/Tests.Shared/TestBase/IntegrationTestBase.cs:line 56