Skip to content

Commit

Permalink
start working on the test
Browse files Browse the repository at this point in the history
  • Loading branch information
msf committed Jun 5, 2024
1 parent 1a49121 commit 44458af
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions ingester/mainloop_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

0 comments on commit 44458af

Please sign in to comment.