porting all github actions from bluesky-social/indigo to tangled CI

fix test

Changed files
+4 -4
automod
+4 -4
automod/engine/circuit_breaker_test.go
··· 44 44 p1cbor := p1buf.Bytes() 45 45 46 46 // generate double the quote of events; expect to only count the quote worth of actions 47 - for i := 0; i < 2*QuotaModTakedownDay; i++ { 47 + for i := 0; i < 2*eng.Config.QuotaModTakedownDay; i++ { 48 48 ident := identity.Identity{ 49 49 DID: syntax.DID(fmt.Sprintf("did:plc:abc%d", i)), 50 50 Handle: syntax.Handle("handle.example.com"), ··· 63 63 64 64 takedowns, err := eng.Counters.GetCount(ctx, "automod-quota", "takedown", countstore.PeriodDay) 65 65 assert.NoError(err) 66 - assert.Equal(QuotaModTakedownDay, takedowns) 66 + assert.Equal(eng.Config.QuotaModTakedownDay, takedowns) 67 67 68 68 reports, err := eng.Counters.GetCount(ctx, "automod-quota", "report", countstore.PeriodDay) 69 69 assert.NoError(err) ··· 89 89 p1cbor := p1buf.Bytes() 90 90 91 91 // generate double the quota of events; expect to only count the quota worth of actions 92 - for i := 0; i < 2*QuotaModReportDay; i++ { 92 + for i := 0; i < 2*eng.Config.QuotaModReportDay; i++ { 93 93 ident := identity.Identity{ 94 94 DID: syntax.DID(fmt.Sprintf("did:plc:abc%d", i)), 95 95 Handle: syntax.Handle("handle.example.com"), ··· 112 112 113 113 reports, err := eng.Counters.GetCount(ctx, "automod-quota", "report", countstore.PeriodDay) 114 114 assert.NoError(err) 115 - assert.Equal(QuotaModReportDay, reports) 115 + assert.Equal(eng.Config.QuotaModReportDay, reports) 116 116 }