Skip to content

Commit 06390b8

Browse files
authored
Fix assertions to `>= 0 for live test of DeviceRegister (Azure#44504)
1 parent 96c3f46 commit 06390b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sdk/deviceregistry/azure-resourcemanager-deviceregistry/src/test/java/com/azure/resourcemanager/deviceregistry/DeviceRegistryManagerTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ public void testList() {
4949
// and Microsoft.ExtendedLocation, but Kubernetes cluster with Azure Arc can only be created by script.
5050
// so only add List test
5151
List<Asset> assets = deviceRegistryManager.assets().list().stream().collect(Collectors.toList());
52-
Assertions.assertTrue(assets.isEmpty());
52+
Assertions.assertTrue(assets.size() >= 0);
5353

5454
List<AssetEndpointProfile> assetEndpointProfiles
5555
= deviceRegistryManager.assetEndpointProfiles().list().stream().collect(Collectors.toList());
56-
Assertions.assertTrue(assetEndpointProfiles.isEmpty());
56+
Assertions.assertTrue(assetEndpointProfiles.size() >= 0);
5757

5858
// The BillingContainers only supported `get` and `list`.
5959
List<BillingContainer> billingContainers
6060
= deviceRegistryManager.billingContainers().list().stream().collect(Collectors.toList());
61-
Assertions.assertTrue(billingContainers.isEmpty());
61+
Assertions.assertTrue(billingContainers.size() >= 0);
6262
}
6363
}

0 commit comments

Comments
 (0)