account_repo_grok_billing_test.go 380 B

12345678910111213141516
  1. package repository
  2. import (
  3. "testing"
  4. "github.com/stretchr/testify/require"
  5. )
  6. func TestGrokBillingSnapshotIsSchedulerNeutral(t *testing.T) {
  7. t.Parallel()
  8. require.True(t, isSchedulerNeutralExtraKey("grok_billing_snapshot"))
  9. require.False(t, shouldEnqueueSchedulerOutboxForExtraUpdates(map[string]any{
  10. "grok_billing_snapshot": map[string]any{"usage_percent": 50},
  11. }))
  12. }