🎨 Do not strip Test prefix for golden files
This commit is contained in:
parent
ac46c1a398
commit
83eb067ddb
|
@ -34,7 +34,7 @@ func GoldenEqual(tb testing.TB, r io.Reader) {
|
||||||
tb.Fatal("cannot read provided data:", err)
|
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)
|
dir := filepath.Dir(file)
|
||||||
|
|
||||||
if *update {
|
if *update {
|
||||||
|
|
Loading…
Reference in New Issue