Skip to content

Fix failing sandbox test (zero-length window) - #66

Merged
YASSERRMD merged 1 commit into
mainfrom
fix/sandbox-test-zero-window
May 28, 2026
Merged

Fix failing sandbox test (zero-length window)#66
YASSERRMD merged 1 commit into
mainfrom
fix/sandbox-test-zero-window

Conversation

@YASSERRMD

Copy link
Copy Markdown
Owner

Summary

TestRejectInvalidWindow passed two separate time.Now() calls for StartAt and EndAt, so EndAt landed nanoseconds after StartAt. Spec.Validate correctly accepted that window, so the test's expected error never came and it failed.

Fix: use a single shared timestamp for both, making the window genuinely zero-length, which Validate rejects as intended. Production Validate code is unchanged.

Test plan

  • go test ./internal/research/sandbox/... passes
  • go test ./... all green

@YASSERRMD
YASSERRMD merged commit 60a4ce5 into main May 28, 2026
3 of 6 checks passed
@YASSERRMD
YASSERRMD deleted the fix/sandbox-test-zero-window branch May 28, 2026 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant