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);