From 4e6f0786b12c144c2524523f926841884e12e03b Mon Sep 17 00:00:00 2001 From: Serge Khorun <104387024+sergekh2@users.noreply.github.com> Date: Sat, 23 Nov 2024 19:33:55 -0800 Subject: [PATCH] Add goroutine leak test to core/node/storage (#1624) --- core/node/storage/main_test.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 core/node/storage/main_test.go diff --git a/core/node/storage/main_test.go b/core/node/storage/main_test.go new file mode 100644 index 000000000..301c7cc84 --- /dev/null +++ b/core/node/storage/main_test.go @@ -0,0 +1,17 @@ +package storage + +import ( + "os" + "testing" + + "github.com/river-build/river/core/node/crypto" +) + +func TestMain(m *testing.M) { + c := m.Run() + if c != 0 { + os.Exit(c) + } + + crypto.TestMainForLeaksIgnoreGeth() +}