Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ducvm29 committed Oct 22, 2024
1 parent 232f724 commit a4e6393
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fptcloud/edge_gateway/datasource_edge_gateway_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package fptcloud_edge_gateway

import (
"context"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/stretchr/testify/assert"
"terraform-provider-fptcloud/commons"
Expand Down Expand Up @@ -53,7 +54,7 @@ func TestReadEdgeGatewayDataSource(t *testing.T) {
client: mockClient,
}

edgeGatewayList, err := d.internalRead(&state)
edgeGatewayList, err := d.internalRead(context.Background(), &state)

// Check if the edgeGatewayList is correct
assert.NoError(t, err)
Expand Down

0 comments on commit a4e6393

Please sign in to comment.