fixup! feat: add scheduled messages BG job

This commit is contained in:
Anna Larch 2025-12-17 11:50:49 +01:00
parent 5f1a897f24
commit 53b6b30624
2 changed files with 2 additions and 4 deletions

View file

@ -66,8 +66,8 @@ trait CommandLineTrait {
1 => ['pipe', 'w'],
2 => ['pipe', 'w'],
];
// $process = proc_open('php ' . $serverRootDir . '/console.php ' . $argString, $descriptor, $pipes, $this->ocPath, $env);
$process = proc_open('sudo -u www-data php ' . $serverRootDir . '/console.php ' . $argString, $descriptor, $pipes, $this->ocPath, $env);
$process = proc_open('php ' . $serverRootDir . '/console.php ' . $argString, $descriptor, $pipes, $this->ocPath, $env);
// $process = proc_open('sudo -u www-data php ' . $serverRootDir . '/console.php ' . $argString, $descriptor, $pipes, $this->ocPath, $env);
$this->lastStdOut = stream_get_contents($pipes[1]);
$this->lastStdErr = stream_get_contents($pipes[2]);
$this->lastCode = proc_close($process);

View file

@ -1963,8 +1963,6 @@ class FeatureContext implements Context, SnippetAcceptingContext {
'/apps/spreed/api/' . $apiVersion . '/chat/' . self::$identifierToToken[$identifier] . '/schedule',
$row
);
var_dump($this->response);
$this->assertStatusCode($this->response, $statusCode);
sleep(1); // make sure Postgres manages the order of the messages