all: Replace _build with build in tests

_build is deprecated and now shows up as warning.
This commit is contained in:
Bjørn Erik Pedersen
2025-06-02 12:44:06 +02:00
parent 32af02cd3e
commit 32eb1a8ad4
5 changed files with 13 additions and 14 deletions

View File

@@ -31,7 +31,7 @@ func TestDecodeBuildConfig(t *testing.T) {
c := qt.New(t)
configTempl := `
[_build]
[build]
render = %s
list = %s
publishResources = true`
@@ -82,7 +82,7 @@ publishResources = true`
} {
cfg, err := config.FromConfigString(fmt.Sprintf(configTempl, test.args...), "toml")
c.Assert(err, qt.IsNil)
bcfg, err := DecodeBuildConfig(cfg.Get("_build"))
bcfg, err := DecodeBuildConfig(cfg.Get("build"))
c.Assert(err, qt.IsNil)
eq := qt.CmpEquals(hqt.DeepAllowUnexported(BuildConfig{}))