Skip to content

Commit

Permalink
Fixed failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oskardudycz committed Feb 5, 2024
1 parent a08c5d5 commit f6bcdd4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"AllowedHosts": "*",
"ConnectionStrings": {
"Incidents": "PORT = 5432; HOST = postgres; TIMEOUT = 15; POOLING = True; MINPOOLSIZE = 1; MAXPOOLSIZE = 100; COMMANDTIMEOUT = 20; DATABASE = 'postgres'; PASSWORD = 'Password12!'; USER ID = 'postgres'"
"Incidents": "PORT = 5432; HOST = postgres; TIMEOUT = 15; POOLING = True; MINPOOLSIZE = 1; MAXPOOLSIZE = 100; COMMANDTIMEOUT = 20; DATABASE = 'postgres'; PASSWORD = 'Password12!'; USER ID = 'postgres'; Persist Security Info=true"
},
"KafkaProducer": {
"ProducerConfig": {
Expand Down
2 changes: 1 addition & 1 deletion Sample/Helpdesk.Wolverine/Helpdesk.Api/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"AllowedHosts": "*",
"ConnectionStrings": {
"Incidents": "PORT = 5432; HOST = localhost; TIMEOUT = 15; POOLING = True; MINPOOLSIZE = 1; MAXPOOLSIZE = 100; COMMANDTIMEOUT = 20; DATABASE = 'postgres'; PASSWORD = 'Password12!'; USER ID = 'postgres'"
"Incidents": "PORT = 5432; HOST = localhost; TIMEOUT = 15; POOLING = True; MINPOOLSIZE = 1; MAXPOOLSIZE = 100; COMMANDTIMEOUT = 20; DATABASE = 'postgres'; PASSWORD = 'Password12!'; USER ID = 'postgres'; Persist Security Info=true;"
},
"KafkaProducer": {
"ProducerConfig": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ protected override void Options(StoreOptions options)
[Fact]
public async Task ShouldProjectEvents_ToElasticsearch()
{
await DocumentSession.DocumentStore.Storage.ApplyAllConfiguredChangesToDatabaseAsync();

await AppendEvents("order1", new OrderInitiated("order1", "ORD/123", new UserInfo("user1", "user1")));

await StartDaemon();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ protected MartenMeetsElasticTest()

documentStore = new DocumentStore(options);
ReOpenSession();

// recreate schema to have it fresh for tests. Kids do not try that on production.
var command = DocumentSession.Connection!.CreateCommand();
command.CommandText = "DROP SCHEMA IF EXISTS MartenMeetsElastic CASCADE; CREATE SCHEMA MartenMeetsElastic;";
command.ExecuteNonQuery();
}

protected virtual void Options(StoreOptions options) { }
Expand Down

0 comments on commit f6bcdd4

Please sign in to comment.