test: enable inbox explicitly in inbox hook tests
After inbox defaults to disabled, inbox upload tests must opt in. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -64,6 +64,7 @@ func TestCursorHookUploadsInboxRecord(t *testing.T) {
|
||||
)
|
||||
|
||||
cfg := config.Default()
|
||||
cfg.Inbox.Enabled = true
|
||||
err := RunCursor(bytes.NewReader([]byte(`{"workspace_roots":["/tmp/proj"]}`)), cfg, "stop", &bytes.Buffer{})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
@@ -87,6 +88,7 @@ func TestCursorHookFallbacksWhenInboxUploadFails(t *testing.T) {
|
||||
)
|
||||
|
||||
cfg := config.Default()
|
||||
cfg.Inbox.Enabled = true
|
||||
err := RunCursor(bytes.NewReader([]byte(`{"workspace_roots":["/tmp/proj"]}`)), cfg, "stop", &bytes.Buffer{})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
@@ -130,6 +132,7 @@ func TestClaudeHookUploadsInboxRecord(t *testing.T) {
|
||||
)
|
||||
|
||||
cfg := config.Default()
|
||||
cfg.Inbox.Enabled = true
|
||||
var out bytes.Buffer
|
||||
if err := RunClaude(strings.NewReader(`{"stop_hook_active":false}`), cfg, "stop", &out); err != nil {
|
||||
t.Fatal(err)
|
||||
|
||||
Reference in New Issue
Block a user