Skip to content

Commit

Permalink
Merge pull request #108 from klothoplatform/fix-tests
Browse files Browse the repository at this point in the history
updating tests after merge to main
  • Loading branch information
atorres-klo authored Jul 30, 2024
2 parents eb8b9df + db5f6f0 commit 765ec3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/k2/constructs/construct_marshaller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (

func TestConstructMarshaller(t *testing.T) {
mockEvaluator := &ConstructEvaluator{
constructs: &async.ConcurrentMap[model.URN, *Construct]{},
Constructs: async.ConcurrentMap[model.URN, *Construct]{},
}
constructURN, _ := model.ParseURN("urn:accountid:project:dev::construct/klotho.aws.Bucket:my-bucket")
mockConstruct := &Construct{
Expand Down Expand Up @@ -52,7 +52,7 @@ func TestConstructMarshaller(t *testing.T) {
},
},
}
mockEvaluator.constructs.Set(*constructURN, mockConstruct)
mockEvaluator.Constructs.Set(*constructURN, mockConstruct)
marshaller := ConstructMarshaller{ConstructEvaluator: mockEvaluator}

tests := []struct {
Expand Down Expand Up @@ -183,7 +183,7 @@ func TestConstructMarshaller(t *testing.T) {

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
mockEvaluator.constructs.Set(*constructURN, tt.mockConstruct)
mockEvaluator.Constructs.Set(*constructURN, tt.mockConstruct)
constraintList, err := marshaller.Marshal(*constructURN)
assert.NoError(t, err, "Marshal() error = %v", err)
tt.validateResult(t, constraintList)
Expand Down

0 comments on commit 765ec3e

Please sign in to comment.