test(centralui): mirror production canonical AttributePath==AttributeName in DebugViewStreamRaceTests (#177)
This commit is contained in:
@@ -91,11 +91,11 @@ public class DebugViewStreamRaceTests : BunitContext
|
|||||||
var dict = AttributeValues(cut.Instance);
|
var dict = AttributeValues(cut.Instance);
|
||||||
|
|
||||||
var evt = new AttributeValueChanged(
|
var evt = new AttributeValueChanged(
|
||||||
"Inst-1", "Pump.Speed", "Speed", 42, "Good", DateTimeOffset.UtcNow);
|
"Inst-1", "Pump.Speed", "Pump.Speed", 42, "Good", DateTimeOffset.UtcNow);
|
||||||
HandleStreamEvent.Invoke(cut.Instance, new object[] { evt });
|
HandleStreamEvent.Invoke(cut.Instance, new object[] { evt });
|
||||||
|
|
||||||
cut.WaitForState(() => dict.Count == 1, TimeSpan.FromSeconds(2));
|
cut.WaitForState(() => dict.Count == 1, TimeSpan.FromSeconds(2));
|
||||||
Assert.True(dict.Contains("Speed"));
|
Assert.True(dict.Contains("Pump.Speed"));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
@@ -122,7 +122,7 @@ public class DebugViewStreamRaceTests : BunitContext
|
|||||||
for (var i = 0; i < 600 && !stop.IsCancellationRequested; i++)
|
for (var i = 0; i < 600 && !stop.IsCancellationRequested; i++)
|
||||||
{
|
{
|
||||||
var evt = new AttributeValueChanged(
|
var evt = new AttributeValueChanged(
|
||||||
"Inst-1", $"Tag.{w}.{i}", $"Tag-{w}-{i}",
|
"Inst-1", $"Tag.{w}.{i}", $"Tag.{w}.{i}",
|
||||||
i, "Good", DateTimeOffset.UtcNow);
|
i, "Good", DateTimeOffset.UtcNow);
|
||||||
HandleStreamEvent.Invoke(cut.Instance, new object[] { evt });
|
HandleStreamEvent.Invoke(cut.Instance, new object[] { evt });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user