From e6748862b167b88b72e698850b8d650e316a0c2d Mon Sep 17 00:00:00 2001 From: shrimptails-f <167423815+shrimptails-f@users.noreply.github.com> Date: Sat, 13 Jun 2026 07:49:29 +0900 Subject: [PATCH] fix(ec2): avoid mixed-type matcher in route table integration test (#1304) --- .../hectorvent/floci/services/ec2/Ec2IntegrationTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/test/java/io/github/hectorvent/floci/services/ec2/Ec2IntegrationTest.java b/src/test/java/io/github/hectorvent/floci/services/ec2/Ec2IntegrationTest.java index 62cffeb18f..f47dae1251 100644 --- a/src/test/java/io/github/hectorvent/floci/services/ec2/Ec2IntegrationTest.java +++ b/src/test/java/io/github/hectorvent/floci/services/ec2/Ec2IntegrationTest.java @@ -1,7 +1,6 @@ package io.github.hectorvent.floci.services.ec2; import static org.hamcrest.Matchers.equalTo; -import static org.hamcrest.Matchers.anyOf; import static org.hamcrest.Matchers.greaterThan; import static org.hamcrest.Matchers.greaterThanOrEqualTo; import static org.hamcrest.Matchers.not; @@ -375,8 +374,7 @@ class Ec2IntegrationTest { .then() .statusCode(200) .body("DescribeRouteTablesResponse.routeTableSet.item.vpcId", equalTo(vpcId)) - .body("DescribeRouteTablesResponse.routeTableSet.item.associationSet.item.main", - anyOf(equalTo(true), equalTo("true"))); + .body(containsString("
true
")); } @Test