55 "testing"
66
77 relayeribctest "github.com/cosmos/relayer/v2/ibctest"
8+ "github.com/cosmos/relayer/v2/relayer"
89 ibctest "github.com/strangelove-ventures/ibctest/v5"
910 "github.com/strangelove-ventures/ibctest/v5/conformance"
1011 "github.com/strangelove-ventures/ibctest/v5/ibc"
@@ -41,12 +42,11 @@ func TestRelayerInProcess(t *testing.T) {
4142 ibctestConformance (t , relayeribctest.RelayerFactory {})
4243}
4344
44- // TestRelayerDocker runs the ibctest conformance tests against
45+ // TestRelayerDockerEventProcessor runs the ibctest conformance tests against
4546// the current state of this relayer implementation built in docker.
4647// Relayer runs using the event processor.
4748func TestRelayerDockerEventProcessor (t * testing.T ) {
4849 t .Parallel ()
49- relayeribctest .BuildRelayerImage (t )
5050
5151 rf := ibctest .NewBuiltinRelayerFactory (
5252 ibc .CosmosRly ,
@@ -59,7 +59,7 @@ func TestRelayerDockerEventProcessor(t *testing.T) {
5959 ibctestConformance (t , rf )
6060}
6161
62- // TestRelayerDocker runs the ibctest conformance tests against
62+ // TestRelayerDockerLegacyProcessor runs the ibctest conformance tests against
6363// the current state of this relayer implementation built in docker.
6464// Relayer runs using the legacy processor.
6565func TestRelayerDockerLegacyProcessor (t * testing.T ) {
@@ -76,3 +76,26 @@ func TestRelayerDockerLegacyProcessor(t *testing.T) {
7676
7777 ibctestConformance (t , rf )
7878}
79+
80+ // TestRelayerEventProcessor runs the ibctest conformance tests against
81+ // the local relayer code. This is helpful for detecting race conditions.
82+ // Relayer runs using the event processor.
83+ func TestRelayerEventProcessor (t * testing.T ) {
84+ t .Parallel ()
85+
86+ ibctestConformance (t , relayeribctest .NewRelayerFactory (relayeribctest.RelayerConfig {
87+ Processor : relayer .ProcessorEvents ,
88+ InitialBlockHistory : 100 ,
89+ }))
90+ }
91+
92+ // TestRelayerLegacyProcessor runs the ibctest conformance tests against
93+ // the local relayer code. This is helpful for detecting race conditions.
94+ // Relayer runs using the legacy processor.
95+ func TestRelayerLegacyProcessor (t * testing.T ) {
96+ t .Parallel ()
97+
98+ ibctestConformance (t , relayeribctest .NewRelayerFactory (relayeribctest.RelayerConfig {
99+ Processor : relayer .ProcessorLegacy ,
100+ }))
101+ }
0 commit comments