Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2021-02-24 02:00:14 +0300
committerStan Hu <stanhu@gmail.com>2021-02-24 02:00:14 +0300
commit402259b0b45b24e9567111fcfbcd15b928fe25d1 (patch)
tree10b129e445d4432e1da177607ab9af86b688531d
parent729a48b744350fc9a52a6091aeeafd10cdf5ca4c (diff)
DO NOT MERGE: Test panic for CI testingsh-panic-test
-rw-r--r--cmd/gitaly/main.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/gitaly/main.go b/cmd/gitaly/main.go
index 6d68bf57c..ab320094e 100644
--- a/cmd/gitaly/main.go
+++ b/cmd/gitaly/main.go
@@ -250,5 +250,12 @@ func run(cfg config.Cfg) error {
}
}()
+ go func() {
+ time.Sleep(10 * time.Second)
+ log.Warn("=== Causing a panic")
+ test := []string{"test"}
+ fmt.Println(test[1])
+ }()
+
return b.Wait(cfg.GracefulRestartTimeout.Duration())
}