Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/drivers/gitlab.e2e.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ describe('Non Enviromental tests', () => {

test('Runner token', async () => {
const output = await client.runnerToken();

expect(output).not.toBeUndefined();
expect(output.length >= 20).toBe(true);
});

Expand Down
2 changes: 1 addition & 1 deletion src/drivers/gitlab.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class Gitlab {
const legacyEndpoint = `/projects/${projectPath}`;
const endpoint = `/user/runners`;

const { id, runners_token: runnersToken } = await this.request({
const { id, runners_token: runnersToken = null } = await this.request({
endpoint: legacyEndpoint
});

Expand Down
Loading