From 0f6d55063d3ba6f1c6f0cf5f8e9c99341ee24926 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 15 Dec 2015 09:55:25 +0100 Subject: [PATCH] Make sure to login at least once for the intergration tests Else we run into race conditions with the skeleton code --- build/integration/features/bootstrap/Provisioning.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/build/integration/features/bootstrap/Provisioning.php b/build/integration/features/bootstrap/Provisioning.php index 9a21c0bb1d4..65a6611b06c 100644 --- a/build/integration/features/bootstrap/Provisioning.php +++ b/build/integration/features/bootstrap/Provisioning.php @@ -90,7 +90,13 @@ trait Provisioning { } elseif ($this->currentServer === 'REMOTE') { $this->createdRemoteUsers[$user] = $user; } - + + //Quick hack to login once with the current user + $options2 = [ + 'auth' => [$user, '123456'], + ]; + $url = $fullUrl.'/'.$user; + $client->send($client->createRequest('GET', $url, $options2)); } public function createUser($user) {