Skip to content

Commit 1b5191f

Browse files
committed
fix tests
1 parent 09de017 commit 1b5191f

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

end2end/EndToEndScaffold/Templates/SqliteTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public async Task TestSqliteTransaction()
106106
var actualNull = await this.QuerySql.GetAuthor(new QuerySql.GetAuthorArgs { Name = "Bojack Horseman" });
107107
Assert.That(actualNull == null, "there is author"); // This is correct for nullable types
108108
109-
await transaction.CommitAsync();
109+
transaction.Commit();
110110
111111
var expected = new QuerySql.GetAuthorRow
112112
{

end2end/EndToEndTestsLegacy/SqliteDapperTester.generated.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ public async Task TestSqliteTransaction()
369369
// The GetAuthor method in SqliteExampleGen returns QuerySql.GetAuthorRow? (nullable record struct/class)
370370
var actualNull = await this.QuerySql.GetAuthor(new QuerySql.GetAuthorArgs { Name = "Bojack Horseman" });
371371
Assert.That(actualNull == null, "there is author"); // This is correct for nullable types
372-
await transaction.CommitAsync();
372+
transaction.Commit();
373373
var expected = new QuerySql.GetAuthorRow
374374
{
375375
Id = 1111,
@@ -380,4 +380,4 @@ public async Task TestSqliteTransaction()
380380
Assert.That(SingularEquals(expected, actual)); // Apply placeholder here
381381
}
382382
}
383-
}
383+
}

end2end/EndToEndTestsLegacy/SqliteTester.generated.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ public async Task TestSqliteTransaction()
369369
// The GetAuthor method in SqliteExampleGen returns QuerySql.GetAuthorRow? (nullable record struct/class)
370370
var actualNull = await this.QuerySql.GetAuthor(new QuerySql.GetAuthorArgs { Name = "Bojack Horseman" });
371371
Assert.That(actualNull == null, "there is author"); // This is correct for nullable types
372-
await transaction.CommitAsync();
372+
transaction.Commit();
373373
var expected = new QuerySql.GetAuthorRow
374374
{
375375
Id = 1111,
@@ -380,4 +380,4 @@ public async Task TestSqliteTransaction()
380380
Assert.That(SingularEquals(expected, actual)); // Apply placeholder here
381381
}
382382
}
383-
}
383+
}

0 commit comments

Comments
 (0)