mirror of
https://github.com/nextcloud/spreed.git
synced 2025-12-17 21:12:20 +01:00
fixup! feat: add scheduled messages BG job
This commit is contained in:
parent
5f1a897f24
commit
53b6b30624
2 changed files with 2 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue