Skip to content

Commit d114b19

Browse files
committed
adjust formatting to resolve comments
Signed-off-by: Chengwei Guo <[email protected]>
1 parent 174bfae commit d114b19

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

apis/fluentd/v1alpha1/tests/expected/fluentd-cluster-cfg-output-null.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@
2727
@type null
2828
never_flush false
2929
</match>
30-
</label>
30+
</label>

apis/fluentd/v1alpha1/tests/helper_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -396,16 +396,14 @@ func Test_ClusterCfgOutput2Null(t *testing.T) {
396396
err = psr.WithCfgResources(*clustercfgRouter.Label, clustercfgResources)
397397
g.Expect(err).NotTo(HaveOccurred())
398398

399-
i := 0
400-
for i < maxRuntimes {
399+
for i := 0; i < maxRuntimes; i++ {
401400
config, errs := psr.RenderMainConfig(false)
402401
g.Expect(errs).NotTo(HaveOccurred())
403402
g.Expect(strings.TrimSpace(string(getExpectedCfg("./expected/fluentd-cluster-cfg-output-null.cfg")))).To(Equal(config))
404-
405-
i++
406403
}
407404

408405
}
406+
409407
func Test_MixedCfgCopy1(t *testing.T) {
410408
g := NewGomegaWithT(t)
411409
sl := NewSecretLoader(logr.Logger{}, lokiHttpCredentials, lokiTenantName)

0 commit comments

Comments
 (0)