Files
MealQuest/internal/dinners/export_test.go
T
dev_agent 423b898f54
CI / ci (push) Successful in 2m24s
Background grounding and recipe fix-up API (#90)
Co-authored-by: dev_agent <dev_agent@cubecraftlabs.com>
2026-10-06 16:39:10 -04:00

15 lines
309 B
Go

package dinners
import (
"testing"
"time"
)
// SetGroundTimeout sets the deadline of grounding by hand until t ends. A
// test calling it must not run in parallel.
func SetGroundTimeout(t *testing.T, d time.Duration) {
old := groundTimeout
groundTimeout = d
t.Cleanup(func() { groundTimeout = old })
}