this repo has no description
0
fork

Configure Feed

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

comment out some test checks which rely on BGS indexing

+11 -5
+11 -5
testing/integ_test.go
··· 185 185 // Now, the relay will discover a gap, and have to catch up somehow 186 186 socialSim(t, users2, 1, 0) 187 187 188 - time.Sleep(time.Second) 189 - 190 188 // we expect the relay to learn about posts that it did not directly see from 191 189 // repos its already partially scraped, as long as its seen *something* after the missing post 192 190 // this is the 'catchup' process 191 + _ = p2posts2 192 + /* NOTE: BGS doesn't support indexing any more 193 + time.Sleep(time.Second) 193 194 ctx := context.Background() 194 195 _, err := b1.bgs.Index.GetPost(ctx, p2posts2[4].Uri) 195 196 if err != nil { 196 197 t.Fatal(err) 197 198 } 199 + */ 198 200 } 199 201 200 202 func TestRelayMultiGap(t *testing.T) { ··· 229 231 p2posts := socialSim(t, users2, 10, 0) 230 232 231 233 users[0].Reply(t, p2posts[0], p2posts[0], "what a wonderful life") 232 - time.Sleep(time.Second * 2) 233 234 235 + /* NOTE: BGS doesn't support indexing any more 236 + time.Sleep(time.Second * 2) 234 237 ctx := context.Background() 235 238 _, err := b1.bgs.Index.GetPost(ctx, p2posts[3].Uri) 236 239 if err != nil { 237 240 t.Fatal(err) 238 241 } 242 + */ 239 243 240 244 // now if we make posts on pds 2, the relay will not hear about those new posts 241 245 ··· 249 253 250 254 // Now, the relay will discover a gap, and have to catch up somehow 251 255 socialSim(t, users2, 1, 0) 252 - 253 - time.Sleep(time.Second * 2) 254 256 255 257 // we expect the relay to learn about posts that it did not directly see from 256 258 // repos its already partially scraped, as long as its seen *something* after the missing post 257 259 // this is the 'catchup' process 260 + _ = p2posts2 261 + /* NOTE: BGS doesn't support indexing any more 262 + time.Sleep(time.Second * 2) 258 263 _, err = b1.bgs.Index.GetPost(ctx, p2posts2[4].Uri) 259 264 if err != nil { 260 265 t.Fatal(err) 261 266 } 267 + */ 262 268 } 263 269 264 270 func TestHandleChange(t *testing.T) {