You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/SideBySide.New/DataTypes.cs
+4-10Lines changed: 4 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -486,11 +486,8 @@ public async Task InsertLargeBlobAsync(string column, int size)
486
486
lastInsertId=cmd.LastInsertedId;
487
487
}
488
488
489
-
foreach(varqueryResultinawaitm_database.Connection.QueryAsync<byte[]>(Invariant($"select `{column}` from datatypes.blobs where rowid = {lastInsertId}")).ConfigureAwait(false))
490
-
{
491
-
Assert.Equal(data,queryResult);
492
-
break;
493
-
}
489
+
varqueryResult=(awaitm_database.Connection.QueryAsync<byte[]>(Invariant($"select `{column}` from datatypes.blobs where rowid = {lastInsertId}")).ConfigureAwait(false)).Single();
490
+
TestUtilities.AssertEqual(data,queryResult);
494
491
495
492
awaitm_database.Connection.ExecuteAsync(Invariant($"delete from datatypes.blobs where rowid = {lastInsertId}")).ConfigureAwait(false);
496
493
}
@@ -519,11 +516,8 @@ public void InsertLargeBlobSync(string column, int size)
519
516
lastInsertId=cmd.LastInsertedId;
520
517
}
521
518
522
-
foreach(varqueryResultinm_database.Connection.Query<byte[]>(Invariant($"select `{column}` from datatypes.blobs where rowid = {lastInsertId}")))
523
-
{
524
-
Assert.Equal(data,queryResult);
525
-
break;
526
-
}
519
+
varqueryResult=m_database.Connection.Query<byte[]>(Invariant($"select `{column}` from datatypes.blobs where rowid = {lastInsertId}")).Single();
520
+
TestUtilities.AssertEqual(data,queryResult);
527
521
528
522
m_database.Connection.Execute(Invariant($"delete from datatypes.blobs where rowid = {lastInsertId}"));
0 commit comments