this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

remove go1.24 t.Context() usage

+10 -7
+3 -2
cmd/rerelay/relay/host_checker_test.go
··· 1 1 package relay 2 2 3 3 import ( 4 + "context" 4 5 "testing" 5 6 6 7 "github.com/bluesky-social/indigo/atproto/identity" ··· 11 12 12 13 func TestMockHostChecker(t *testing.T) { 13 14 assert := assert.New(t) 14 - ctx := t.Context() 15 + ctx := context.Background() 15 16 var err error 16 17 17 18 hc := NewMockHostChecker() ··· 33 34 // NOTE: this test does live network resolutions 34 35 func TestLiveHostChecker(t *testing.T) { 35 36 assert := assert.New(t) 36 - ctx := t.Context() 37 + ctx := context.Background() 37 38 var err error 38 39 39 40 dir := identity.DefaultDirectory()
+3 -2
cmd/rerelay/testing/framework_test.go
··· 1 1 package testing 2 2 3 3 import ( 4 + "context" 4 5 "encoding/json" 5 6 "fmt" 6 7 "os" ··· 16 17 // meta test for the testing framework itself. simply connects the consumer to the producer 17 18 func TestFramework(t *testing.T) { 18 19 assert := assert.New(t) 19 - ctx := t.Context() 20 + ctx := context.Background() 20 21 21 22 p := NewProducer() 22 23 port := p.ListenRandom() ··· 77 78 } 78 79 79 80 func TestBasicScenario(t *testing.T) { 80 - ctx := t.Context() 81 + ctx := context.Background() 81 82 82 83 err := LoadAndRunScenario(ctx, "testdata/basic.json") 83 84 if err != nil {
+4 -3
cmd/rerelay/testing/sync_test.go
··· 1 1 package testing 2 2 3 3 import ( 4 + "context" 4 5 "testing" 5 6 6 7 "github.com/stretchr/testify/assert" ··· 8 9 9 10 func TestSyncScenarios(t *testing.T) { 10 11 assert := assert.New(t) 11 - ctx := t.Context() 12 + ctx := context.Background() 12 13 13 14 base, err := LoadScenario(ctx, "testdata/post_lifecycle.json") 14 15 if err != nil { ··· 27 28 28 29 func TestWrongKey(t *testing.T) { 29 30 assert := assert.New(t) 30 - ctx := t.Context() 31 + ctx := context.Background() 31 32 32 33 base, err := LoadScenario(ctx, "testdata/basic.json") 33 34 if err != nil { ··· 45 46 } 46 47 47 48 func TestDeactivationScenario(t *testing.T) { 48 - ctx := t.Context() 49 + ctx := context.Background() 49 50 50 51 err := LoadAndRunScenario(ctx, "testdata/deactivation.json") 51 52 if err != nil {