Skip to content

Commit

Permalink
debug trial for the build timing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Ersan Bozduman committed Jan 24, 2024
1 parent 4f83aad commit 079af86
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Minio.Functional.Tests/FunctionalTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,9 @@ internal static async Task<ObjectStat> PutObject_Tester(IMinioClient minio,
.WithProgress(progress)
.WithContentType(contentType)
.WithHeaders(metaData);
await minio.PutObjectAsync(putObjectArgs).ConfigureAwait(false);
var statPutObj = await minio.PutObjectAsync(putObjectArgs).ConfigureAwait(false);
Console.WriteLine("\n\nPrint statPutObj");
Utils.Print(statPutObj);

var statObjectArgs = new StatObjectArgs()
.WithBucket(bucketName)
Expand Down Expand Up @@ -3503,7 +3505,7 @@ internal static async Task PutObject_Test9(IMinioClient minio)
// Console.WriteLine(
// $"PutObject_Test9 - Percentage: {progressReport.Percentage}% TotalBytesTransferred: {progressReport.TotalBytesTransferred} bytes");
if (progressReport.Percentage != 100)
Console.SetCursorPosition(0, Console.CursorTop - 1);
Console.SetCursorPosition(0, Console.CursorTop - 1);
// else Console.WriteLine();
});
var args = new Dictionary<string, string>
Expand All @@ -3518,12 +3520,11 @@ internal static async Task PutObject_Test9(IMinioClient minio)
{
await Setup_Test(minio, bucketName).ConfigureAwait(false);


var stream = rsg.GenerateStreamFromSeed(objSize);
_ = await PutObject_Tester(minio, bucketName, objectName, null, contentType, 0, null,
var statObj = await PutObject_Tester(minio, bucketName, objectName, null, contentType, 0, null,
stream, progress).ConfigureAwait(false);
Console.WriteLine($"\n\n percentage = {percentage]\n\n");
Assert.IsTrue(d == 100);
Console.WriteLine($"\n\n percentage = {percentage.ToString(CultureInfo.InvariantCulture)}\n\n");
Assert.IsTrue(percentage == 100);
Assert.IsTrue(totalBytesTransferred == objSize);
new MintLogger(nameof(PutObject_Test9), putObjectSignature,
"Tests whether PutObject with progress passes for small object", TestStatus.PASS,
Expand Down

0 comments on commit 079af86

Please sign in to comment.