Skip to content

Commit

Permalink
Fix collect issues test
Browse files Browse the repository at this point in the history
  • Loading branch information
RobiNino authored Dec 20, 2020
1 parent b2e4fbe commit a210401
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a210401

Please sign in to comment.