Skip to content

Commit

Permalink
Use ubuntu-18.04 for GitHub actions due to an issue with the CosmosDb…
Browse files Browse the repository at this point in the history
  • Loading branch information
AButler committed Nov 21, 2022
1 parent a128818 commit 274b85d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/commit.yml
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-18.04 # Use old version for now due to https://github.com/Azure/azure-cosmos-db-emulator-docker/issues/45

steps:
- name: Checkout
Expand Down
Expand Up @@ -9,7 +9,6 @@ namespace LogOtter.CosmosDb.ContainerMock.IntegrationTests;
public class IntegrationTestsFixture : IAsyncLifetime
{
private readonly CosmosDbTestcontainer _container;
private bool _started;

public IntegrationTestsFixture()
{
Expand All @@ -20,11 +19,6 @@ public IntegrationTestsFixture()

public TestCosmos CreateTestCosmos()
{
if (!_started)
{
throw new Exception("ERROR: Container not started!");
}

var cosmosClient = new CosmosClient(_container.ConnectionString, new CosmosClientOptions
{
ConnectionMode = ConnectionMode.Gateway,
Expand All @@ -37,7 +31,6 @@ public TestCosmos CreateTestCosmos()
public async Task InitializeAsync()
{
await _container.StartAsync();
_started = true;

if (Environment.GetEnvironmentVariable("GITHUB_ACTIONS") == "true")
{
Expand Down

0 comments on commit 274b85d

Please sign in to comment.