Skip to content

Commit

Permalink
node use in test must be in right account
Browse files Browse the repository at this point in the history
In aws account for unit testing.
  • Loading branch information
ianic committed Dec 6, 2021
1 parent 65882a8 commit 361ace4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ func TestNodeResources(t *testing.T) {

func testNodeResources(t *testing.T, ws *domain.Workspace) {
for _, node := range ws.Nodes {
if node.AccountID != awsAccountID {
continue
}
for _, rs := range node.Resources() {
if rs.Type == domain.AwsResourceLambda {
tags, err := awsCli.Lambda().Info(rs.AWSName)
Expand Down

0 comments on commit 361ace4

Please sign in to comment.