Skip to content

Commit

Permalink
add log of body
Browse files Browse the repository at this point in the history
  • Loading branch information
aldor007 committed Feb 19, 2024
1 parent da4bc9e commit 713ab45
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions castai/resource_node_template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import (
"bytes"
"context"
"fmt"
"github.com/samber/lo"
"io"
"net/http"
"testing"
"time"

"github.com/samber/lo"

"github.com/golang/mock/gomock"
"github.com/hashicorp/go-cty/cty"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"
Expand Down Expand Up @@ -592,7 +593,7 @@ func testAccCheckNodeTemplateDestroy(s *terraform.State) error {
return nil
}

return fmt.Errorf("node template %q still exists; %v", id, response)
return fmt.Errorf("node template %q still exists; %v", id, string(response.GetBody()))
}

return nil
Expand Down

0 comments on commit 713ab45

Please sign in to comment.