Skip to content

Commit 861c519

Browse files
authored
Update options to exclude missing members in tests
1 parent bd450db commit 861c519

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Source/EasyNetQ.Management.Client.IntegrationTests/ManagementClientTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,7 +1420,7 @@ await fixture.ManagementClient.CreateShovelAsync(
14201420
Timestamp: default,
14211421
Type: "dynamic",
14221422
State: "starting"),
1423-
options => options.Excluding(ss => ss.Timestamp));
1423+
options => options.ExcludingMissingMembers().Excluding(ss => ss.Timestamp));
14241424
}
14251425
catch
14261426
{
@@ -1435,7 +1435,7 @@ await fixture.ManagementClient.CreateShovelAsync(
14351435

14361436
Reason: "\"needed a restart\""
14371437
),
1438-
options => options.Excluding(ss => ss.Timestamp));
1438+
options => options.ExcludingMissingMembers().Excluding(ss => ss.Timestamp));
14391439
break;
14401440
}
14411441
}
@@ -1489,7 +1489,7 @@ await fixture.ManagementClient.CreateShovelAsync(
14891489
Timestamp: default,
14901490
Type: "dynamic",
14911491
State: "starting"),
1492-
options => options.Excluding(ss => ss.Timestamp));
1492+
options => options.ExcludingMissingMembers().Excluding(ss => ss.Timestamp));
14931493
}
14941494
catch
14951495
{
@@ -1514,7 +1514,7 @@ await fixture.ManagementClient.CreateShovelAsync(
15141514
DestExchangeKey: parameterShovelValue.DestExchangeKey,
15151515
BlockedStatus: fixture.RabbitmqVersion >= new Version("3.11") ? "running" : null
15161516
),
1517-
options => options.Excluding(ss => ss.Timestamp));
1517+
options => options.ExcludingMissingMembers().Excluding(ss => ss.Timestamp));
15181518
break;
15191519
}
15201520
}

0 commit comments

Comments
 (0)