From 44458af394640227dadcfc6671f6d22b16c72bc0 Mon Sep 17 00:00:00 2001 From: Miguel Filipe Date: Wed, 5 Jun 2024 12:27:17 +0100 Subject: [PATCH] start working on the test --- ingester/mainloop_test.go | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/ingester/mainloop_test.go b/ingester/mainloop_test.go index a96d103..6a57de6 100644 --- a/ingester/mainloop_test.go +++ b/ingester/mainloop_test.go @@ -3,13 +3,33 @@ package ingester_test import "testing" func TestBlockConsumptionLoop(t *testing.T) { - t.Skip("not implemented") + testcases := []string{ + "we're very behind, trying to catch up", + "we're up to date, following the head", + "we're erroring systematically, the RPC node is broken, all API calls are failing", + "we're erroring only on GetBlockByNumber, a specific jsonRPC on the RPC node is broken", + } + + for _, testcase := range testcases { + t.Run(testcase, func(t *testing.T) { + t.Skip("not implemented") + }) + } } func TestBlockSendingLoop(t *testing.T) { - t.Skip("not implemented") + testcases := []string{ + "we're up to date, following the head", + "we're failing intermittently, the Dune API is broken", + "we're erroring systematically, the Dune API is down", + } + for _, testcase := range testcases { + t.Run(testcase, func(t *testing.T) { + t.Skip("not implemented") + }) + } } -func TestRunLoop(t *testing.T) { +func TestRunLoopHappyCase(t *testing.T) { t.Skip("not implemented") }