Add Fake Checkin for K6 Test

This commit is contained in:
Suphonchai Phoonsawat 2024-08-19 17:18:58 +07:00
parent e1533a5c23
commit 127f21dc43
3 changed files with 65 additions and 7 deletions

View file

@ -61,14 +61,9 @@ consumer.Received += async (model, ea) =>
channel.BasicConsume(queue: "checkin-queue", autoAck: true, consumer: consumer);
Console.WriteLine("\nPress 'Enter' to exit the process...");
// another use of "Console.ReadKey()" method
// here it asks to press the enter key to exit
while (Console.ReadKey().Key != ConsoleKey.Enter)
{
}
//Console.WriteLine("\nPress 'Enter' to exit the process...");
await Task.Delay(-1);
static void WriteToConsole(string message)
{