From 29b14f7110fe0965a60ae090fd7bae9ebc1cd512 Mon Sep 17 00:00:00 2001 From: Neha Naithani Date: Tue, 30 Jan 2024 12:45:28 +1300 Subject: [PATCH] Added or condition in testGetDeviceArchType --- .../eclipse/iofog/utils/device_info/ArchitectureTypeTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/iofog-agent-daemon/src/test/java/org/eclipse/iofog/utils/device_info/ArchitectureTypeTest.java b/iofog-agent-daemon/src/test/java/org/eclipse/iofog/utils/device_info/ArchitectureTypeTest.java index 814a9e70..409470ba 100644 --- a/iofog-agent-daemon/src/test/java/org/eclipse/iofog/utils/device_info/ArchitectureTypeTest.java +++ b/iofog-agent-daemon/src/test/java/org/eclipse/iofog/utils/device_info/ArchitectureTypeTest.java @@ -20,6 +20,7 @@ import org.mockito.quality.Strictness; import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; /** * @author nehanaithani @@ -54,6 +55,7 @@ public void testGetArchTypeByArchName() { */ @Test public void testGetDeviceArchType() { - assertEquals(ArchitectureType.ARM, ArchitectureType.getDeviceArchType()); + assertTrue(ArchitectureType.ARM == ArchitectureType.getDeviceArchType() + || ArchitectureType.INTEL_AMD == ArchitectureType.getDeviceArchType()); } } \ No newline at end of file