Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit c24fc03

Browse files
authored
delete minor unreachable code caused by log.Fatal (#4930)
Signed-off-by: Abirdcfly <[email protected]>
1 parent fb157ee commit c24fc03

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

test/e2e/runner.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ func main() {
164164
teardown()
165165
}
166166
log.Fatalf("Error while trying to provision cluster:%s", err)
167-
os.Exit(1)
168167
}
169168
if cfg.SoakClusterName != "" {
170169
err = sa.CreateFileShare(cfg.SoakClusterName)
@@ -185,15 +184,13 @@ func main() {
185184
teardown()
186185
}
187186
log.Fatalf("Error trying to parse Engine config:%s\n", err)
188-
os.Exit(1)
189187
}
190188
cs, err := engine.ParseInput(engCfg.ClusterDefinitionTemplate)
191189
if err != nil {
192190
if cfg.CleanUpIfFail {
193191
teardown()
194192
}
195193
log.Fatalf("Error trying to parse engine template into memory:%s\n", err)
196-
os.Exit(1)
197194
}
198195
eng = &engine.Engine{
199196
Config: engCfg,
@@ -225,7 +222,6 @@ func main() {
225222
teardown()
226223
}
227224
log.Fatalf("Error: Unable to parse ginkgo configuration!")
228-
os.Exit(1)
229225
}
230226
err = g.Run()
231227
if err != nil {

0 commit comments

Comments
 (0)