Debian Codegraph @

integration/_fixtures/interceptor_sleep_fixture/interceptor_fixture_suite_test.go

raw
1 package main_test
2
3 import (
4 "fmt"
5 "os"
6 "os/exec"
7 "testing"
8
9 . "github.com/onsi/ginkgo/v2"
10 . "github.com/onsi/gomega"
11 )
12
13 func TestInterceptorSleepFixture(t *testing.T) {
14 RegisterFailHandler(Fail)
15 RunSpecs(t, "TestInterceptorSleepFixture Suite")
16 }
17
18 var _ = Describe("Ensuring that ginkgo -p does not hang when output is intercepted", func() {
19 It("ginkgo -p should not hang on this spec", func() {
20 fmt.Fprintln(os.Stdout, "Some STDOUT output")
21 fmt.Fprintln(os.Stderr, "Some STDERR output")
22 cmd := exec.Command("sleep", "60")
23 Ω(cmd.Start()).Should(Succeed())
24 })
25 })