Skip to content

Commit b4b4d46

Browse files
committed
fix typos
1 parent 6ea6eff commit b4b4d46

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/helm/template.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func UpdateSnapshot(t testing.TestingT, options *Options, yamlData string, relea
149149
require.NoError(t, UpdateSnapshotE(t, options, yamlData, releaseName))
150150
}
151151

152-
// UpdateSnapshot creates or updates the k8s manifest snapshot of a chart (e.g bitnami/nginx).
152+
// UpdateSnapshotE creates or updates the k8s manifest snapshot of a chart (e.g bitnami/nginx).
153153
// It is one of the two functions needed to implement snapshot based testing for helm.
154154
// see https://github.com/gruntwork-io/terratest/issues/1377
155155
// A snapshot is used to compare the current manifests of a chart with the previous manifests.
@@ -190,8 +190,8 @@ func UpdateSnapshotE(t testing.TestingT, options *Options, yamlData string, rele
190190
// DiffAgainstSnapshot compare the current manifests of a chart (e.g bitnami/nginx)
191191
// with the previous manifests stored in the snapshot.
192192
// see https://github.com/gruntwork-io/terratest/issues/1377
193-
// It returns the number of difference between the two manifest snaphost or -1 in case of error
194-
// It will failed the test if there is an error while reading or writing the two manifests in the file system
193+
// It returns the number of difference between the two manifests or -1 in case of error
194+
// It will fail the test if there is an error while reading or writing the two manifests in the file system
195195
func DiffAgainstSnapshot(t testing.TestingT, options *Options, yamlData string, releaseName string) int {
196196
numberOfDiffs, err := DiffAgainstSnapshotE(t, options, yamlData, releaseName)
197197
require.NoError(t, err)
@@ -201,7 +201,7 @@ func DiffAgainstSnapshot(t testing.TestingT, options *Options, yamlData string,
201201
// DiffAgainstSnapshotE compare the current manifests of a chart (e.g bitnami/nginx)
202202
// with the previous manifests stored in the snapshot.
203203
// see https://github.com/gruntwork-io/terratest/issues/1377
204-
// It returns the number of difference between the two manifest snaphost or -1 in case of error
204+
// It returns the number of difference between the manifests or -1 in case of error
205205
func DiffAgainstSnapshotE(t testing.TestingT, options *Options, yamlData string, releaseName string) (int, error) {
206206

207207
var snapshotDir = "__snapshot__"

0 commit comments

Comments
 (0)