refactor(ablegacy): confine libplctag to its adapter behind AbStatus/AbTransportException
This commit is contained in:
@@ -112,7 +112,7 @@ public sealed class AbLegacyArrayTests
|
||||
var (drv, factory) = NewDriver(
|
||||
new AbLegacyTagDefinition("Levels", "ab://10.0.0.5/1,0", "N7:0", AbLegacyDataType.Int, ArrayLength: 5));
|
||||
await drv.InitializeAsync("{}", CancellationToken.None);
|
||||
factory.Customise = p => new FakeAbLegacyTag(p) { Status = (int)libplctag.Status.ErrorTimeout };
|
||||
factory.Customise = p => new FakeAbLegacyTag(p) { Status = (int)ZB.MOM.WW.OtOpcUa.Driver.Ab.Transport.AbStatus.Timeout };
|
||||
|
||||
var snapshots = await drv.ReadAsync(["Levels"], CancellationToken.None);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user