From a2104011722a5419e5f3fa1631b1b3d943dd0b3f Mon Sep 17 00:00:00 2001 From: Robi Nino Date: Sun, 20 Dec 2020 18:33:13 +0200 Subject: [PATCH] Fix collect issues test --- tests/tests.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tests.ts b/tests/tests.ts index 109fcdf1..8f3b5eb8 100644 --- a/tests/tests.ts +++ b/tests/tests.ts @@ -988,12 +988,12 @@ function assertIssuesCollection(buildName: string, buildNumber: string): void { // Check vcs url. const expectedVcsUrl: string = 'https://github.com/jfrog/jfrog-cli-go.git'; - const actualVcsUrl: string = body.buildInfo.vcsUrl; + const actualVcsUrl: string = body.buildInfo.vcs[0].url; assert.ok(expectedVcsUrl === actualVcsUrl, "Expected vcs url: '" + expectedVcsUrl + "', actual: '" + actualVcsUrl + "'.\n" + tasksOutput); // Check vcs revision. const expectedVcsRevision: string = 'b033a0e508bdb52eee25654c9e12db33ff01b8ff'; - const actualVcsRevision: string = body.buildInfo.vcsRevision; + const actualVcsRevision: string = body.buildInfo.vcs[0].revision; assert.ok( expectedVcsRevision === actualVcsRevision, "Expected vcs revision: '" + expectedVcsRevision + "', actual: '" + actualVcsRevision + "'.\n" + tasksOutput