Skip to content

Commit 70835d6

Browse files
committed
chore: update unit tests
1 parent d499dad commit 70835d6

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

internal/provider/pooler_data_source_test.go

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,15 @@ func TestAccPoolerDataSource(t *testing.T) {
1818
// Setup mock api
1919
defer gock.OffAll()
2020
gock.New("https://api.supabase.com").
21-
Get("/v1/projects/mayuaycdtijbctgqbycg/config/database/pgbouncer").
21+
Get("/v1/projects/mayuaycdtijbctgqbycg/config/database/pooler").
2222
Times(3).
2323
Reply(http.StatusOK).
24-
JSON(api.V1PgbouncerConfigResponse{
25-
ConnectionString: &poolerUrl,
26-
DefaultPoolSize: Ptr(float32(15)),
27-
IgnoreStartupParameters: Ptr(""),
28-
MaxClientConn: Ptr(float32(200)),
29-
PoolMode: Ptr(api.Transaction),
30-
})
24+
JSON([]api.SupavisorConfigResponse{{
25+
ConnectionString: poolerUrl,
26+
DefaultPoolSize: Ptr(float32(15)),
27+
MaxClientConn: Ptr(float32(200)),
28+
PoolMode: api.SupavisorConfigResponsePoolModeTransaction,
29+
}})
3130
// Run test
3231
resource.Test(t, resource.TestCase{
3332
PreCheck: func() { testAccPreCheck(t) },

0 commit comments

Comments
 (0)