Skip to content

Commit

Permalink
Tried to add delay in file reloading test
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasherceg committed Nov 29, 2024
1 parent e67a069 commit c732af6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Tests/Runtime/MarkupLoaderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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<dot:TextBox Text=Changed />");
Thread.Sleep(1000);

var builderChanged = controlBuilder.GetControlBuilder(file);
var control = builderChanged.builder.Value.BuildControl(config.ServiceProvider.GetRequiredService<IControlBuilderFactory>(), config.ServiceProvider);
Expand Down

0 comments on commit c732af6

Please sign in to comment.