🎨 Do not strip Test prefix for golden files

This commit is contained in:
Maxim Lebedev 2024-02-13 16:57:26 +06:00
parent ac46c1a398
commit 83eb067ddb
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ func GoldenEqual(tb testing.TB, r io.Reader) {
tb.Fatal("cannot read provided data:", err)
}
file := filepath.Join(wd, "testdata", tb.Name()[4:]+".golden")
file := filepath.Join(wd, "testdata", tb.Name()+".golden")
dir := filepath.Dir(file)
if *update {