Skip to content

Commit d05e159

Browse files
committed
limayaml/defaults_test.go: fix incorrect expect.Probes[0].Script
The test was passing regardless of what value was assigned to `Script` because `expect.Probes[0]` and `y.Probes[0]` were the same instance. Signed-off-by: Norio Nomura <[email protected]>
1 parent c469ddf commit d05e159

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/limayaml/defaults_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ func TestFillDefault(t *testing.T) {
226226
expect.Probes = slices.Clone(y.Probes)
227227
expect.Probes[0].Mode = ProbeModeReadiness
228228
expect.Probes[0].Description = "user probe 1/1"
229-
expect.Probes[0].Script = "#!/bin/true # Eins"
229+
expect.Probes[0].Script = "#!/bin/false # Eins"
230230

231231
expect.Networks = slices.Clone(y.Networks)
232232
expect.Networks[0].MACAddress = MACAddress(fmt.Sprintf("%s#%d", filePath, 0))

0 commit comments

Comments
 (0)