mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix robot tests
This commit is contained in:
parent
e17b4c6e23
commit
38040ba1d3
5
.github/workflows/robot.yml
vendored
5
.github/workflows/robot.yml
vendored
@ -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
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user