Skip to content

Commit

Permalink
Trying really hard to stabilize tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydmiller committed Oct 23, 2024
1 parent 405ba5e commit 5090deb
Show file tree
Hide file tree
Showing 132 changed files with 485 additions and 863 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/on-push-do-ci-build-pg15-jsonnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,4 @@ jobs:
- name: test-aspnet-core
if: ${{ success() || failure() }}
run: ./build.sh test-aspnet-core
shell: bash
shell: bash
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,4 @@ jobs:
- name: test-aspnet-core
if: ${{ success() || failure() }}
run: ./build.sh test-aspnet-core
shell: bash
shell: bash
207 changes: 0 additions & 207 deletions azure-pipelines.yml

This file was deleted.

8 changes: 4 additions & 4 deletions src/CoreTests/Bugs/Bug_3083_concurrent_type_generation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ public async Task concurrent_append_providers()

await Task.WhenAll(tasks);

graph.StorageFor<SomeDocument>().ShouldBeTheSameAs(documentProvider1);
graph.StorageFor<OtherDocument>().ShouldBeTheSameAs(documentProvider2);
graph.StorageFor<ThirdDocument>().ShouldBeTheSameAs(documentProvider3);
graph.StorageFor<ForthDocument>().ShouldBeTheSameAs(documentProvider4);
graph.StorageFor<SomeDocument>().ShouldBeSameAs(documentProvider1);
graph.StorageFor<OtherDocument>().ShouldBeSameAs(documentProvider2);
graph.StorageFor<ThirdDocument>().ShouldBeSameAs(documentProvider3);
graph.StorageFor<ForthDocument>().ShouldBeSameAs(documentProvider4);
}

public class MockDocumentProvider<T>: DocumentProvider<T> where T : notnull
Expand Down
6 changes: 6 additions & 0 deletions src/CoreTests/CoreTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@
<Compile Include="..\Marten.Testing\Harness\TestsSettings.cs">
<Link>Harness\TestsSettings.cs</Link>
</Compile>
<Compile Include="..\Marten.Testing\MartenHostEnvironment.cs">
<Link>MartenHostEnvironment.cs</Link>
</Compile>
<Compile Include="..\Marten.Testing\RecordingLogger.cs">
<Link>RecordingLogger.cs</Link>
</Compile>
<Compile Include="..\Marten.Testing\SchemaMigrationExtensions.cs">
<Link>SchemaMigrationExtensions.cs</Link>
</Compile>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Marten.Testing.Harness;
using Shouldly;
using Xunit;

namespace CoreTests.Diagnostics;
Expand All @@ -17,4 +18,4 @@ public void can_fetch_postgres_server_version()
public ability_to_fetch_postgres_server_version(DefaultStoreFixture fixture) : base(fixture)
{
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public void can_map_web_style_search_not_supported()
});

e.Reason.ShouldBe(NotSupportedReason.WebStyleSearchNeedsAtLeastPostgresVersion11);
SpecificationExtensions.ShouldContain(e.Message, KnownNotSupportedExceptionCause.WebStyleSearch.Description);
e.Message.ShouldContain(KnownNotSupportedExceptionCause.WebStyleSearch.Description);
}

public known_exception_causes_dueto_pg10(DefaultStoreFixture fixture) : base(fixture)
Expand Down
5 changes: 3 additions & 2 deletions src/CoreTests/Exceptions/known_exception_causes_dueto_pg9.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public void can_map_jsonb_FTS_not_supported()
});

e.Reason.ShouldBe(NotSupportedReason.FullTextSearchNeedsAtLeastPostgresVersion10);
SpecificationExtensions.ShouldContain(e.Message, KnownNotSupportedExceptionCause.ToTsvectorOnJsonb.Description);
e.Message.ShouldContain(KnownNotSupportedExceptionCause.ToTsvectorOnJsonb.Description);
}

[PgVersionTargetedFact(MaximumVersion = "10.0")]
Expand All @@ -31,7 +31,8 @@ public void can_totsvector_other_than_jsonb_without_FTS_exception()
using var session = theStore.QuerySession();
session.Query<User>("to_tsvector(?)", 0).ToList();
});
SpecificationExtensions.ShouldNotBeOfType<MartenCommandNotSupportedException>(e);

e.ShouldNotBeOfType<MartenCommandNotSupportedException>();
}

public known_exception_causes_dueto_pg9(DefaultStoreFixture fixture) : base(fixture)
Expand Down

This file was deleted.

Loading

0 comments on commit 5090deb

Please sign in to comment.