MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / testPlatformEnvironment

Function testPlatformEnvironment

console/e2e-tests/platform.spec.ts:296–309  ·  view source on GitHub ↗
(
  page: Page,
  _request: APIRequestContext,
  password: string,
)

Source from the content-addressed store, hash-verified

294}
295
296async function testPlatformEnvironment(
297 page: Page,
298 _request: APIRequestContext,
299 password: string,
300) {
301 // TODO (SangJunBak): Re-enable this test once we fix the flakiness.
302 // At the time of writing this, the postgres client isn't able to connect.
303 return;
304 const client = await connectRegionPostgres(page, password);
305 console.log("SELECT 1");
306 const result = await client.query("SELECT 1 as success");
307 assert.equal(result.rows[0].success, 1);
308 return;
309}
310
311async function connectRegionPostgres(
312 page: Page,

Callers 1

platform.spec.tsFile · 0.85

Calls 3

connectRegionPostgresFunction · 0.85
logMethod · 0.45
queryMethod · 0.45

Tested by

no test coverage detected