mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-01 04:34:50 -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
|
submodules: recursive
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Pull images
|
- name: Pull images
|
||||||
run: docker-compose pull
|
run: |
|
||||||
|
cp .env.example .env
|
||||||
|
docker-compose pull
|
||||||
|
|
||||||
- name: Docker cache
|
- name: Docker cache
|
||||||
uses: satackey/action-docker-layer-caching@v0.0.11
|
uses: satackey/action-docker-layer-caching@v0.0.11
|
||||||
@ -28,7 +30,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Start the service
|
- name: Start the service
|
||||||
run: |
|
run: |
|
||||||
cp .env.example .env
|
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
|
|
||||||
- name: Perform healthchecks
|
- name: Perform healthchecks
|
||||||
|
@ -16,35 +16,14 @@
|
|||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with Kyoo. If not, see <https://www.gnu.org/licenses/>.
|
// along with Kyoo. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Threading.Tasks;
|
|
||||||
using Kyoo.Abstractions.Models;
|
using Kyoo.Abstractions.Models;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
using Xunit.Abstractions;
|
|
||||||
|
|
||||||
namespace Kyoo.Tests.Database
|
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]
|
[Fact]
|
||||||
[SuppressMessage("ReSharper", "EqualExpressionComparison")]
|
[SuppressMessage("ReSharper", "EqualExpressionComparison")]
|
||||||
public void SampleTest()
|
public void SampleTest()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user