From c732af6009a77399fa372ad8b46d57190e2819a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Herceg?= Date: Fri, 29 Nov 2024 14:23:51 +0100 Subject: [PATCH] Tried to add delay in file reloading test --- src/Tests/Runtime/MarkupLoaderTests.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Tests/Runtime/MarkupLoaderTests.cs b/src/Tests/Runtime/MarkupLoaderTests.cs index 1c8eaf1ee..25fc987a6 100644 --- a/src/Tests/Runtime/MarkupLoaderTests.cs +++ b/src/Tests/Runtime/MarkupLoaderTests.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.IO; using System.Linq; +using System.Threading; using DotVVM.Framework.Compilation; using DotVVM.Framework.Configuration; using DotVVM.Framework.Controls; @@ -72,6 +73,7 @@ public void FileReloading(bool debug) Assert.AreSame(builder0.builder, builderUnchanged.builder); // same Lazy instance File.WriteAllText(file, "@viewModel int\n\n"); + Thread.Sleep(1000); var builderChanged = controlBuilder.GetControlBuilder(file); var control = builderChanged.builder.Value.BuildControl(config.ServiceProvider.GetRequiredService(), config.ServiceProvider);