Skip to content

Commit c855c9b

Browse files
committed
Fix relay addr
1 parent e2f6a19 commit c855c9b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

enterprise/replicasync/replicasync_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,17 +134,17 @@ func TestReplica(t *testing.T) {
134134
db, pubsub := dbtestutil.NewDB(t)
135135
peer, err := db.InsertReplica(context.Background(), database.InsertReplicaParams{
136136
ID: uuid.New(),
137-
CreatedAt: database.Now(),
138-
StartedAt: database.Now(),
139-
UpdatedAt: database.Now(),
137+
CreatedAt: database.Now().Add(time.Minute),
138+
StartedAt: database.Now().Add(time.Minute),
139+
UpdatedAt: database.Now().Add(time.Minute),
140140
Hostname: "something",
141-
// Fake address to hit!
142-
RelayAddress: "http://169.254.169.254",
141+
// Fake address to dial!
142+
RelayAddress: "http://127.0.0.1:1",
143143
})
144144
require.NoError(t, err)
145145
server, err := replicasync.New(context.Background(), slogtest.Make(t, nil), db, pubsub, &replicasync.Options{
146146
PeerTimeout: 1 * time.Millisecond,
147-
RelayAddress: "http://169.254.169.254",
147+
RelayAddress: "http://127.0.0.1:1",
148148
})
149149
require.NoError(t, err)
150150
require.Len(t, server.Regional(), 1)

0 commit comments

Comments
 (0)