From 7a8d413a4b2e18e5077d54c3a705b0d3e57b0e91 Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Wed, 26 Jul 2023 10:36:49 +0200 Subject: [PATCH] Fix git clone integration test for non-existing repo --- internal/git_clone_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/git_clone_test.go b/internal/git_clone_test.go index b280ebc7d..6c76adeef 100644 --- a/internal/git_clone_test.go +++ b/internal/git_clone_test.go @@ -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) }