Update test assertion

This commit is contained in:
Pieter Noordhuis 2024-11-18 20:55:15 +01:00
parent e5bd9d981c
commit 1d7862da7b
No known key found for this signature in database
GPG Key ID: 12ACCCC104CF2930
1 changed files with 1 additions and 2 deletions

View File

@ -4,7 +4,6 @@ import (
"context" "context"
"fmt" "fmt"
"os" "os"
"path/filepath"
"testing" "testing"
"github.com/databricks/cli/cmd/root" "github.com/databricks/cli/cmd/root"
@ -21,5 +20,5 @@ func TestMaterializeForNonTemplateDirectory(t *testing.T) {
// Try to materialize a non-template directory. // Try to materialize a non-template directory.
err = Materialize(ctx, "", os.DirFS(tmpDir), "") err = Materialize(ctx, "", os.DirFS(tmpDir), "")
assert.EqualError(t, err, fmt.Sprintf("not a bundle template: expected to find a template schema file at %s", filepath.Join(tmpDir, schemaFileName))) assert.EqualError(t, err, fmt.Sprintf("not a bundle template: expected to find a template schema file at %s", schemaFileName))
} }