We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ff28ae commit 9b1ff6fCopy full SHA for 9b1ff6f
cmd/dbos/cli_integration_test.go
@@ -104,8 +104,11 @@ func TestCLIWorkflow(t *testing.T) {
104
fmt.Println(cmd.Stderr)
105
fmt.Println(cmd.Stdout)
106
*/
107
- cmd.Process.Signal(os.Interrupt)
108
- cmd.Process.Kill()
+ err := cmd.Process.Signal(os.Interrupt)
+ require.NoError(t, err, "Failed to send interrupt signal to application process")
109
+ time.Sleep(1 * time.Second) // Give it a moment to shut down gracefully
110
+ err = cmd.Process.Kill()
111
+ require.NoError(t, err, "Failed to kill application process")
112
}
113
})
114
0 commit comments