Skip to content

Commit

Permalink
Merge pull request #18165 from pshipton/hwmodel
Browse files Browse the repository at this point in the history
Fix TestOperatingSystemMXBean HardwareModel test
  • Loading branch information
keithc-ca committed Sep 19, 2023
2 parents f4f131b + 9616ddb commit 6258782
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -461,7 +461,7 @@ public final void testGetAttributes() {
} else if (name.equals("ProcessCpuLoad")) {
AssertJUnit.assertTrue(value instanceof Double);
} else if (name.equals("HardwareModel")) {
AssertJUnit.assertTrue(value instanceof String);
AssertJUnit.assertTrue((value == null) || (value instanceof String));
} else if (name.equals("HardwareEmulated")) {
AssertJUnit.assertTrue(value instanceof Boolean);
} else if (name.equals("OpenFileDescriptorCount")) {
Expand Down

0 comments on commit 6258782

Please sign in to comment.