From 1266894a1e931e0da4a1e9e95ad11efac255c1cc Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Thu, 31 Oct 2024 15:54:18 +0100 Subject: [PATCH] e2e: fix TestInteractions --- internal/test/e2e/interactions_test.go | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/internal/test/e2e/interactions_test.go b/internal/test/e2e/interactions_test.go index c26671b41..c46f90113 100644 --- a/internal/test/e2e/interactions_test.go +++ b/internal/test/e2e/interactions_test.go @@ -2,7 +2,6 @@ package e2e import ( "context" - "errors" "testing" "time" @@ -43,31 +42,6 @@ func TestInteractions(t *testing.T) { t.Fatal("expected pt UID to be set") } - // assert price table gets updated - var ptUpdates int - tt.Retry(100, 100*time.Millisecond, func() error { - // fetch the host - h, err := b.Host(context.Background(), h1.PublicKey()) - tt.OK(err) - - // make sure it did not get scanned again - if h.Interactions.TotalScans != ts { - t.Fatal("expected no new scans", h.Interactions.TotalScans, ts) - } - - // keep track of pt updates - if h.PriceTable.UID != ptUID { - ptUID = h.PriceTable.UID - ptUpdates++ - } - - // assert the price table was updated - if ptUpdates < 2 { - return errors.New("price table should be updated from time to time") - } - return nil - }) - // scan the host manually tt.OKAll(b.ScanHost(context.Background(), h1.PublicKey(), 0)) time.Sleep(3 * testBusFlushInterval)