Skip to content

Commit df86dd2

Browse files
authored
fix(internal/config/gcloudyaml): fix TestGcloudConfig (#1557)
TestGcloudConfig is skipped in #1533. The test failure is now fixed. Fixes #1544
1 parent 904934e commit df86dd2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/sidekick/internal/config/gcloudyaml/gcloud_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ package gcloudyaml
1616

1717
import (
1818
"bytes"
19+
"fmt"
1920
"os"
2021
"strings"
2122
"testing"
@@ -54,7 +55,7 @@ func TestGcloudConfig(t *testing.T) {
5455
continue
5556
}
5657
}
57-
want := strings.Join(lines[index:], "\n")
58+
want := fmt.Sprintf("service_name: %s\n%s", config.ServiceName, strings.Join(lines[index:], "\n"))
5859
if diff := cmp.Diff(want, got.String()); diff != "" {
5960
t.Errorf("mismatch(-want, +got)\n%s", diff)
6061
}

0 commit comments

Comments
 (0)