Skip to content

Commit

Permalink
Correct test error message
Browse files Browse the repository at this point in the history
Signed-off-by: Charlie Egan <[email protected]>
  • Loading branch information
charlieegan3 committed Oct 7, 2024
1 parent 0936ca7 commit 4d95123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/lsp/server_template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func TestTemplateContentsForFileInWorkspaceRoot(t *testing.T) {

err = os.WriteFile(filepath.Join(td, ".regal/config.yaml"), []byte{}, 0o600)
if err != nil {
t.Fatalf("failed to create directory %s: %s", filepath.Join(td, ".regal"), err)
t.Fatalf("failed to create file %s: %s", filepath.Join(td, ".regal"), err)
}

ctx := context.Background()
Expand All @@ -145,7 +145,7 @@ func TestTemplateContentsForFileInWorkspaceRoot(t *testing.T) {
}

if !strings.Contains(err.Error(), "this function does not template files in the workspace root") {
t.Fatalf("expected error to be templatingInRootError, got %T", err)
t.Fatalf("expected error about root templating, got %s", err.Error())
}
}

Expand Down

0 comments on commit 4d95123

Please sign in to comment.