We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98ebd98 commit bd6dabbCopy full SHA for bd6dabb
instrumentation/github.com/astaxie/beego/otelbeego/test/beego_test.go
@@ -240,7 +240,7 @@ func TestRender(t *testing.T) {
240
// Create the view
241
file, err := os.CreateTemp(dir, "*index.tpl")
242
require.NoError(t, err)
243
- defer file.Close()
+ t.Cleanup(func() { file.Close() })
244
_, err = file.WriteString(htmlStr)
245
246
// Add path to view path
0 commit comments