Skip to content

Commit dd26f68

Browse files
committed
test: update flattenConditions tests to use context for organization_id
1 parent 9c88bbe commit dd26f68

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

github/util_rules_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package github
22

33
import (
4+
"context"
45
"testing"
56

67
"github.com/google/go-github/v82/github"
@@ -864,7 +865,7 @@ func TestFlattenConditionsOrganizationID(t *testing.T) {
864865
},
865866
}
866867

867-
result := flattenConditions(conditions, true)
868+
result := flattenConditions(context.Background(), conditions, true)
868869

869870
if len(result) != 1 {
870871
t.Fatalf("Expected 1 element in result, got %d", len(result))
@@ -904,7 +905,7 @@ func TestRoundTripConditionsWithAllProperties(t *testing.T) {
904905
}
905906

906907
// Flatten back to terraform format
907-
flattenedResult := flattenConditions(expandedConditions, true)
908+
flattenedResult := flattenConditions(context.Background(), expandedConditions, true)
908909

909910
if len(flattenedResult) != 1 {
910911
t.Fatalf("Expected 1 flattened result, got %d", len(flattenedResult))

0 commit comments

Comments
 (0)