integration/system: format code with gofumpt
Formatting the code with https://github.com/mvdan/gofumpt Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
5cc1c6eca0
commit
c0edf0861b
2 changed files with 5 additions and 4 deletions
|
@ -37,7 +37,8 @@ func TestInfoAPI(t *testing.T) {
|
|||
"KernelVersion",
|
||||
"Driver",
|
||||
"ServerVersion",
|
||||
"SecurityOptions"}
|
||||
"SecurityOptions",
|
||||
}
|
||||
|
||||
out := fmt.Sprintf("%+v", info)
|
||||
for _, linePrefix := range stringsToCheck {
|
||||
|
|
|
@ -111,7 +111,7 @@ func TestPingBuilderHeader(t *testing.T) {
|
|||
d.Start(t)
|
||||
defer d.Stop(t)
|
||||
|
||||
var expected = types.BuilderBuildKit
|
||||
expected := types.BuilderBuildKit
|
||||
if runtime.GOOS == "windows" {
|
||||
expected = types.BuilderV1
|
||||
}
|
||||
|
@ -123,12 +123,12 @@ func TestPingBuilderHeader(t *testing.T) {
|
|||
|
||||
t.Run("buildkit disabled", func(t *testing.T) {
|
||||
cfg := filepath.Join(d.RootDir(), "daemon.json")
|
||||
err := os.WriteFile(cfg, []byte(`{"features": { "buildkit": false }}`), 0644)
|
||||
err := os.WriteFile(cfg, []byte(`{"features": { "buildkit": false }}`), 0o644)
|
||||
assert.NilError(t, err)
|
||||
d.Start(t, "--config-file", cfg)
|
||||
defer d.Stop(t)
|
||||
|
||||
var expected = types.BuilderV1
|
||||
expected := types.BuilderV1
|
||||
p, err := client.Ping(ctx)
|
||||
assert.NilError(t, err)
|
||||
assert.Equal(t, p.BuilderVersion, expected)
|
||||
|
|
Loading…
Add table
Reference in a new issue