Skip to content

Commit 8a5c24c

Browse files
authored
fix(cloudformation): assert node types rather than single instance after adding try new cfn node (#6338)
1 parent 34aa041 commit 8a5c24c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/toolkit/jetbrains-core/tst/software/aws/toolkits/jetbrains/services/cloudformation/CloudFormationServiceNodeTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class CloudFormationServiceNodeTest {
3131

3232
val node = CloudFormationServiceNode(projectRule.project, CF_EXPLORER_NODE)
3333

34-
assertThat(node.children).singleElement().matches { it.displayName() == "Stack" }
34+
assertThat(node.children.filterIsInstance<CloudFormationStackNode>()).singleElement().matches { it.displayName() == "Stack" }
3535
}
3636

3737
@Test
@@ -40,7 +40,7 @@ class CloudFormationServiceNodeTest {
4040

4141
val node = CloudFormationServiceNode(projectRule.project, CF_EXPLORER_NODE)
4242

43-
assertThat(node.children).singleElement().isInstanceOf(AwsExplorerEmptyNode::class.java)
43+
assertThat(node.children.filterIsInstance<AwsExplorerEmptyNode>()).singleElement()
4444
}
4545

4646
private fun stacksWithNames(names: List<Pair<String, StackStatus>>) {

0 commit comments

Comments
 (0)