Skip to content

Commit

Permalink
update tests 2 and 3 diff url
Browse files Browse the repository at this point in the history
  • Loading branch information
folarin oyenuga committed Jun 19, 2024
1 parent 53d38be commit 2bf7c28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/annotations-checker/validate/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ func TestParse(t *testing.T) {
}

// test case 2: invalid pr fails containing incorrect team name
invalidTeamNameDiffURL := "https://github.com/ministryofjustice/cloud-platform-environments/pull/21897.diff"
invalidTeamNameDiffURL := "https://github.com/ministryofjustice/cloud-platform-environments/pull/23707.diff"
_, err = Parse(client, org, invalidTeamNameDiffURL)
if err == nil {
t.Errorf("Expected an error for invalid team name, but got none")
}

// test case 3: invalid PR fails containing incorrect source code repo
invalidSourceCodeDiffURL := "https://github.com/ministryofjustice/cloud-platform-environments/pull/21897.diff"
invalidSourceCodeDiffURL := "https://github.com/ministryofjustice/cloud-platform-environments/pull/23730.diff"
_, err = Parse(client, org, invalidSourceCodeDiffURL)
if err == nil {
t.Errorf("Expected an error for invalid source code repo, but got none")
Expand Down

0 comments on commit 2bf7c28

Please sign in to comment.