fix(test): stream large report snapshot SQL
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -33,3 +33,12 @@ test("postgres fixture start failure and stop both release the compose-network s
|
||||
/stop\(\) \{[\s\S]*releasePort\(portReservation\)[\s\S]*slot\.release\(\)/,
|
||||
);
|
||||
});
|
||||
|
||||
test("large PostgreSQL scripts use stdin without changing shared -c helpers", () => {
|
||||
assert.match(fixtureSource, /psqlScriptAs\(role, password, sql\)/);
|
||||
assert.match(fixtureSource, /psqlScriptAs[\s\S]*input: sql/);
|
||||
assert.match(fixtureSource, /psqlScriptAs[\s\S]*maxBuffer: 16 \* 1024 \* 1024/);
|
||||
assert.match(fixtureSource, /psqlScriptAs[\s\S]*"--single-transaction"[\s\S]*"-f"[\s\S]*"-"/);
|
||||
assert.match(fixtureSource, /psql\(sql\)[\s\S]*"-Atc",\s*sql/);
|
||||
assert.match(fixtureSource, /psqlAs\(role, password, sql\)[\s\S]*"-Atc",\s*sql/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user