Пример запуска интеграционных тестов
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 3s

This commit is contained in:
Оля Бизюкова 2024-12-17 12:44:52 +05:00
parent 35f98b9ee4
commit 598b4ac5ee
2 changed files with 13 additions and 13 deletions

View File

@ -6,7 +6,7 @@ jobs:
Explore-Gitea-Actions: Explore-Gitea-Actions:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - run: dotnet test DD.Persistence.IntegrationTests
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code - name: Check out repository code

View File

@ -209,20 +209,20 @@ namespace DD.Persistence.IntegrationTests.Controllers
Assert.NotNull(response?.To); Assert.NotNull(response?.To);
} }
[Fact] // [Fact]
public async Task GetPart_returns_success() // public async Task GetPart_returns_success()
{ // {
//arrange // //arrange
var dateBegin = DateTimeOffset.UtcNow; // var dateBegin = DateTimeOffset.UtcNow;
var take = 2; // var take = 2;
//act // //act
var response = await techMessagesClient.GetPart(dateBegin, take, CancellationToken.None); // var response = await techMessagesClient.GetPart(dateBegin, take, CancellationToken.None);
//assert // //assert
Assert.NotNull(response); // Assert.NotNull(response);
Assert.Empty(response); // Assert.Empty(response);
} //}
[Fact] [Fact]
public async Task GetPart_AfterSave_returns_success() public async Task GetPart_AfterSave_returns_success()