Fix git clone integration test for non-existing repo

This commit is contained in:
Shreyas Goenka 2023-07-26 10:36:49 +02:00
parent 3fa400f00f
commit 7a8d413a4b
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 1 additions and 1 deletions

View File

@ -59,5 +59,5 @@ func TestAccGitCloneRepositoryDoesNotExist(t *testing.T) {
tmpDir := t.TempDir()
err := git.Clone(context.Background(), "doesnot-exist", "", tmpDir)
assert.Contains(t, err.Error(), `repository 'https://github.com/databricks/doesnot-exist/' not found`)
assert.Error(t, err)
}