diff --git a/dotnet/BirdApi/BeakPeekApi.Tests/Controllers/ImportControllerTest.cs b/dotnet/BirdApi/BeakPeekApi.Tests/Controllers/ImportControllerTest.cs index 2d28739c..f579cae6 100644 --- a/dotnet/BirdApi/BeakPeekApi.Tests/Controllers/ImportControllerTest.cs +++ b/dotnet/BirdApi/BeakPeekApi.Tests/Controllers/ImportControllerTest.cs @@ -25,7 +25,7 @@ public async Task ImportData_ShouldReturnOk() var stream = new MemoryStream(System.Text.Encoding.UTF8.GetBytes(fileContent)); var formFile = new FormFile(stream, 0, stream.Length, "file", fileName); - _mockCsvImporter.Setup(m => m.ImportCsvData(It.IsAny(), It.IsAny())); + _mockCsvImporter.Setup(m => m.ImportCsvData(It.IsAny(), It.IsAny())).Returns(Task.Delay(100)); // Act var result = await _controller.ImportData(formFile, "TestProvince");