Fix robot tests

This commit is contained in:
Zoe Roux 2023-03-16 14:49:32 +09:00
parent e17b4c6e23
commit 38040ba1d3
2 changed files with 4 additions and 24 deletions

View File

@ -17,7 +17,9 @@ jobs:
submodules: recursive
fetch-depth: 0
- name: Pull images
run: docker-compose pull
run: |
cp .env.example .env
docker-compose pull
- name: Docker cache
uses: satackey/action-docker-layer-caching@v0.0.11
@ -28,7 +30,6 @@ jobs:
- name: Start the service
run: |
cp .env.example .env
docker-compose up -d
- name: Perform healthchecks

View File

@ -16,35 +16,14 @@
// You should have received a copy of the GNU General Public License
// along with Kyoo. If not, see <https://www.gnu.org/licenses/>.
using System;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using Kyoo.Abstractions.Models;
using Xunit;
using Xunit.Abstractions;
namespace Kyoo.Tests.Database
{
public class GlobalTests : IDisposable, IAsyncDisposable
public class GlobalTests
{
private readonly RepositoryActivator _repositories;
public GlobalTests(ITestOutputHelper output)
{
_repositories = new RepositoryActivator(output);
}
public void Dispose()
{
_repositories.Dispose();
GC.SuppressFinalize(this);
}
public ValueTask DisposeAsync()
{
return _repositories.DisposeAsync();
}
[Fact]
[SuppressMessage("ReSharper", "EqualExpressionComparison")]
public void SampleTest()