Skip to content

Commit a5fb602

Browse files
committed
Shorten e2e tests by cutting block sequences down by factor of 4
1 parent 4175a39 commit a5fb602

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tests/e2e/e2e.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ var _ = ginkgo.Describe("[HyperSDK Syncing]", ginkgo.Serial, func() {
141141
blockchainID := e2e.GetEnv(tc).GetNetwork().GetSubnet(networkConfig.Name()).Chains[0].ChainID
142142

143143
uris := getE2EURIs(tc, blockchainID)
144-
ginkgo.By("Generate 128 blocks", func() {
145-
txWorkload.GenerateBlocks(tc.ContextWithTimeout(5*time.Minute), require, uris, 128)
144+
ginkgo.By("Generate 32 blocks", func() {
145+
txWorkload.GenerateBlocks(tc.ContextWithTimeout(5*time.Minute), require, uris, 32)
146146
})
147147

148148
var (
@@ -161,8 +161,8 @@ var _ = ginkgo.Describe("[HyperSDK Syncing]", ginkgo.Serial, func() {
161161
ginkgo.By("Restart the node", func() {
162162
require.NoError(e2e.GetEnv(tc).GetNetwork().RestartNode(tc.DefaultContext(), ginkgo.GinkgoWriter, bootstrapNode))
163163
})
164-
ginkgo.By("Generate > StateSyncMinBlocks=512", func() {
165-
txWorkload.GenerateBlocks(tc.ContextWithTimeout(20*time.Minute), require, uris, 512)
164+
ginkgo.By("Generate > StateSyncMinBlocks=128", func() {
165+
txWorkload.GenerateBlocks(tc.ContextWithTimeout(20*time.Minute), require, uris, 128)
166166
})
167167
var (
168168
syncNode *tmpnet.Node
@@ -191,10 +191,10 @@ var _ = ginkgo.Describe("[HyperSDK Syncing]", ginkgo.Serial, func() {
191191
require.Error(err) //nolint:forbidigo
192192
require.False(ok)
193193
})
194-
ginkgo.By("Generate 256 blocks", func() {
194+
ginkgo.By("Generate 32 blocks", func() {
195195
// Generate blocks on all nodes except the paused node
196196
runningURIs := uris[:len(uris)-1]
197-
txWorkload.GenerateBlocks(tc.ContextWithTimeout(5*time.Minute), require, runningURIs, 256)
197+
txWorkload.GenerateBlocks(tc.ContextWithTimeout(5*time.Minute), require, runningURIs, 32)
198198
})
199199
ginkgo.By("Resume the node", func() {
200200
require.NoError(e2e.GetEnv(tc).GetNetwork().StartNode(tc.DefaultContext(), ginkgo.GinkgoWriter, syncNode))

tests/fixture/subnet.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func NewHyperVMSubnet(name string, vmID ids.ID, genesisBytes []byte, nodes ...*t
1717
Genesis: genesisBytes,
1818
Config: `{
1919
"statesync": {
20-
"minBlocks": 512
20+
"minBlocks": 128
2121
}
2222
}`,
2323
},

0 commit comments

Comments
 (0)