Debian Codegraph @

integration/_fixtures/exiting_synchronized_setup_fixture/exiting_synchronized_setup_suite_test.go

raw
1 package synchronized_setup_test
2
3 import (
4 . "github.com/onsi/ginkgo/v2"
5 . "github.com/onsi/gomega"
6
7 "fmt"
8 "os"
9 "testing"
10 )
11
12 func TestSynchronized_setup(t *testing.T) {
13 RegisterFailHandler(Fail)
14 RunSpecs(t, "Synchronized_setup_tests Suite")
15 }
16
17 var beforeData string
18
19 var _ = SynchronizedBeforeSuite(func() []byte {
20 fmt.Printf("BEFORE_A_%d\n", GinkgoParallelProcess())
21 os.Exit(1)
22 return []byte("WHAT EVZ")
23 }, func(data []byte) {
24 println("NEVER SEE THIS")
25 })
26
27 var _ = Describe("Synchronized Setup", func() {
28 It("should do nothing", func() {
29 Ω(true).Should(BeTrue())
30 })
31
32 It("should do nothing", func() {
33 Ω(true).Should(BeTrue())
34 })
35 })