Skip to content

Commit

Permalink
xUnit1030
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnmbond committed Dec 7, 2023
1 parent 43e614f commit acfb166
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion LogicMonitor.Api.Test/Netflow/FlowTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public async Task GetFlows()
public async Task GetPorts()
{
var device = await GetNetflowDeviceAsync(default)
.ConfigureAwait(false);
.ConfigureAwait(true);
var flowPorts = await LogicMonitorClient.GetFlowPortsPageAsync(new FlowPortsRequest
{
TimePeriod = TimePeriod.OneDay,
Expand Down
2 changes: 1 addition & 1 deletion LogicMonitor.Api.Test/OpsNotes/OpsNotesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public async Task GetOpsNotes()
}, default)
.ConfigureAwait(true);

await Task.Delay(TimeSpan.FromSeconds(2)).ConfigureAwait(false);
await Task.Delay(TimeSpan.FromSeconds(2)).ConfigureAwait(true);

var allOpsNotes = await LogicMonitorClient
.GetAllAsync<OpsNote>(default)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public async Task GetDeviceScheduledDownTimes()
new Eq<ScheduledDownTime>(nameof(ScheduledDownTime.Type), "DeviceSDT"),
new Eq<ScheduledDownTime>(nameof(ScheduledDownTime.IsEffective), false),
]
}, default).ConfigureAwait(false);
}, default).ConfigureAwait(true);
Assert.All(sdts, sdt => Assert.False(sdt.IsEffective));
}

Expand Down
4 changes: 3 additions & 1 deletion LogicMonitor.Api.Test/Settings/NetscanGroupTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ await LogicMonitorClient
[Fact]
public async Task CanGetNetscanGroups()
{
var allNetscanGroups = await LogicMonitorClient.GetAllAsync<NetscanGroup>(default).ConfigureAwait(false);
var allNetscanGroups = await LogicMonitorClient
.GetAllAsync<NetscanGroup>(default)
.ConfigureAwait(true);
allNetscanGroups.Should().NotBeNull();
allNetscanGroups.Should().NotBeNullOrEmpty();
var ids = allNetscanGroups.Select(nspg => nspg.Id);
Expand Down

0 comments on commit acfb166

Please sign in to comment.